1
0
forked from GitHub/gf-core

Import orphan instances of MonadFail for ghc<8

Also upgrade alex/happy so automatic install works
This commit is contained in:
Andreas Källberg
2020-09-09 11:05:41 +02:00
parent 150b592aa9
commit 9d8cd55cd5
4 changed files with 23 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ import GF.Infra.UseIO(putStrLnE)
import Control.Monad(when)
import qualified Data.Map as Map
import GF.Infra.UseIO (Output)
import qualified Control.Monad.Fail as Fail
-- import Control.Monad.State (StateT)
data CommandEnv m = CommandEnv {
commands :: Map.Map String (CommandInfo m),
@@ -22,6 +25,7 @@ data CommandEnv m = CommandEnv {
mkCommandEnv cmds = CommandEnv cmds Map.empty Map.empty
--interpretCommandLine :: CommandEnv -> String -> SIO ()
interpretCommandLine :: (Output m, TypeCheckArg m) => CommandEnv m -> String -> m ()
interpretCommandLine env line =
case readCommandLine line of
Just [] -> return ()