Safe Haskell | None |
---|---|
Language | Haskell2010 |
- io :: ([Definition] -> [IO Definition]) -> Dictionary -> IO Dictionary
- mapIO :: (Definition -> IO Definition) -> Dictionary -> IO Dictionary
- lsequence :: Monad m => [(String, m a)] -> m [(String, a)]
- (⚡) :: (FromJSON a, ToJSON a) => Metadata -> Text -> Maybe a
- (⚡⚡) :: (FromJSON a, ToJSON a) => Metadata -> Text -> a
Documentation
io :: ([Definition] -> [IO Definition]) -> Dictionary -> IO Dictionary Source #
IO Sequence helpers
mapIO :: (Definition -> IO Definition) -> Dictionary -> IO Dictionary Source #
lsequence :: Monad m => [(String, m a)] -> m [(String, a)] Source #
One way to deal with multiple dictionaries.
lsequence [ ( "pages", Shikensu.list ["src/pages/**/*.html"] rootDir ) , ( "js", Shikensu.list ["src/javascript/**/*.js"] rootDir ) ]
From multiple IO monads to a single IO monad.