summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Grammar/Lockfield.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2011-09-01 16:35:53 +0000
committerhallgren <hallgren@chalmers.se>2011-09-01 16:35:53 +0000
commitbfe4b0b2a4e5b761b287f9110e19af5b9430dbbb (patch)
tree13b74698ec8281ce6b860249ab5b7be1ba4d0885 /src/compiler/GF/Grammar/Lockfield.hs
parent314abe733ba1e9e7de12c9c28b7d6ffc889d128b (diff)
GF.Grammar.*: generalized the type of some functions that can not fail from the Err monad to arbitrary monads
Diffstat (limited to 'src/compiler/GF/Grammar/Lockfield.hs')
-rw-r--r--src/compiler/GF/Grammar/Lockfield.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Grammar/Lockfield.hs b/src/compiler/GF/Grammar/Lockfield.hs
index 3e78a48b6..8b0798527 100644
--- a/src/compiler/GF/Grammar/Lockfield.hs
+++ b/src/compiler/GF/Grammar/Lockfield.hs
@@ -32,7 +32,7 @@ lockRecType c t@(RecType rs) =
else RecType (rs ++ [(lockLabel c, RecType [])])
lockRecType c t = plusRecType t $ RecType [(lockLabel c, RecType [])]
-unlockRecord :: Ident -> Term -> Err Term
+unlockRecord :: Monad m => Ident -> Term -> m Term
unlockRecord c ft = do
let (xs,t) = termFormCnc ft
let lock = R [(lockLabel c, (Just (RecType []),R []))]