Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Modern Functional Programming: The Onion Architecture. Parent comment
frignate :: (MonadDB m) => Config -> m Int frignate cfg = do db <- getDB ... return 1
And you can swap in non-IO based instances for testing, or whatever else you want.
There are no comments on this comment yet.
And you can swap in non-IO based instances for testing, or whatever else you want.