Skip to content

Instantly share code, notes, and snippets.

@wjlroe
Created August 30, 2011 11:27
Show Gist options
  • Save wjlroe/1180697 to your computer and use it in GitHub Desktop.
Save wjlroe/1180697 to your computer and use it in GitHub Desktop.
error!
src/tyrion.hs:23:29:
No instances for (Read (IO String), Num (IO String))
arising from a use of `get'
Possible fix:
add instance declarations for (Read (IO String), Num (IO String))
In the second argument of `($)', namely `get cp "" "password"'
In a stmt of a 'do' expression:
password <- forceEither $ get cp "" "password"
In the expression:
do { config <- readfile emptyCP fileLoc;
let cp = forceEither config;
username <- forceEither $ get cp "" "username";
password <- forceEither $ get cp "" "password";
.... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment