Minor tweak
This commit is contained in:
parent
0859d92efc
commit
0a6b448441
@ -761,12 +761,12 @@ headerToPair cp _ (DeleteCookie key) =
|
|||||||
headerToPair _ _ (Header key value) = (key, value)
|
headerToPair _ _ (Header key value) = (key, value)
|
||||||
|
|
||||||
-- | Get a unique identifier.
|
-- | Get a unique identifier.
|
||||||
newIdent :: Monad mo => GGHandler sub master mo String
|
newIdent :: Monad mo => GGHandler sub master mo String -- FIXME use Text
|
||||||
newIdent = GHandler $ lift $ lift $ lift $ do
|
newIdent = GHandler $ lift $ lift $ lift $ do
|
||||||
x <- get
|
x <- get
|
||||||
let i' = ghsIdent x + 1
|
let i' = ghsIdent x + 1
|
||||||
put x { ghsIdent = i' }
|
put x { ghsIdent = i' }
|
||||||
return $ "h" ++ show i'
|
return $ 'h' : show i'
|
||||||
|
|
||||||
liftIOHandler :: MonadIO mo
|
liftIOHandler :: MonadIO mo
|
||||||
=> GGHandler sub master IO a
|
=> GGHandler sub master IO a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user