Skip to content

Instantly share code, notes, and snippets.

@seanparsons
Created January 4, 2015 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanparsons/5c1326d0e5a1721c9e8a to your computer and use it in GitHub Desktop.
Save seanparsons/5c1326d0e5a1721c9e8a to your computer and use it in GitHub Desktop.
Baffling doctest error.
sean@Tower:~/workspace/rwst-wiring$ .cabal-sandbox/bin/doctest -isrc Control.Monad.Trans.Reader.Wiring
### Failure in src/Control/Monad/Trans/Reader/Wiring.hs:17: expression `:{
let composedResult = do
result1 <- promoteReader $ request1 "1"
result2 <- promoteReader $ request2 "2"
return [result1, result2] :: ReaderT (Database1, Database2) IO [String]
:}'
expected: >>> runReaderT composedResult (Database1, Database2)
["User1", "User2"]
but got:
Examples: 6 Tried: 6 Errors: 0 Failures: 1
sean@Tower:~/workspace/rwst-wiring$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment