Skip to content

Commit

Permalink
bank-commands.txt still works
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryTravis committed Sep 16, 2019
1 parent aade127 commit cce3032
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions bank-commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
createAccount foo
createAccount bar
deposit foo 100
deposit bar 120
1 change: 1 addition & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ main = do
-- deltaDemo
-- expDemo
oldWebDemo
-- bankProcess
8 changes: 5 additions & 3 deletions src/Tmi.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}

module Tmi (oldWebDemo) where
module Tmi
( oldWebDemo
, bankProcess) where

import Control.Applicative
import Control.Monad.State
Expand Down Expand Up @@ -272,9 +274,9 @@ bank args = do
processBankCommand (map T.unpack args)
return $ vconst $ WRRedirect "?q=%5B%22home%22%5D"

--bankProcess = do
bankProcess = do
--copyFile "init-history.db" "history.db"
--processLines "bank-commands.txt" processBankCommandString
processLines "bank-commands.txt" processBankCommandString

bankPage :: [Text] -> WebTMI
bankPage [] = do
Expand Down

0 comments on commit cce3032

Please sign in to comment.