forked from GitHub/gf-core
add missing MonadFail constraint for newer GHC
This commit is contained in:
@@ -43,7 +43,7 @@ instance (Monad m,HasPGF m,Fail.MonadFail m) => TypeCheckArg m where
|
|||||||
(inferExpr pgf e)
|
(inferExpr pgf e)
|
||||||
Nothing -> fail "Import a grammar before using this command"
|
Nothing -> fail "Import a grammar before using this command"
|
||||||
|
|
||||||
pgfCommands :: HasPGF m => Map.Map String (CommandInfo m)
|
pgfCommands :: (HasPGF m, MonadFail m) => Map.Map String (CommandInfo m)
|
||||||
pgfCommands = Map.fromList [
|
pgfCommands = Map.fromList [
|
||||||
("aw", emptyCommandInfo {
|
("aw", emptyCommandInfo {
|
||||||
longname = "align_words",
|
longname = "align_words",
|
||||||
|
|||||||
Reference in New Issue
Block a user