src: Lib: Use infix fmap
This commit is contained in:
parent
27ef8809b8
commit
277dc29645
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ type DSL = F DSLMethod
|
|||
|
||||
interpretDSLMethod :: DSLMethod a -> IO a
|
||||
interpretDSLMethod (LogMsg logger next) =
|
||||
fmap next $ runLogger logger
|
||||
next <$> runLogger logger
|
||||
interpretDSLMethod (RunQuery conn squery sql next) =
|
||||
fmap next $ runDB conn squery sql
|
||||
next <$> runDB conn squery sql
|
||||
|
||||
runDSL :: DSL () -> IO ()
|
||||
runDSL = foldF interpretDSLMethod
|
||||
|
|
Loading…
Reference in a new issue