Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justindthomas/b1bf659553c5754814baaf722ca970e9 to your computer and use it in GitHub Desktop.
Save justindthomas/b1bf659553c5754814baaf722ca970e9 to your computer and use it in GitHub Desktop.
Couldn't match expected type ‘Article -> T.Text’
with actual type ‘T.Text’
In the second argument of ‘(##)’, namely
‘T.pack
$ L.unpack $ X.renderHtml $ markdownToHtml $ T.pack $ show content’
In a stmt of a 'do' block:
"articleContent"
##
T.pack
$ L.unpack $ X.renderHtml $ markdownToHtml $ T.pack $ show content
In the second argument of ‘($)’, namely
‘do { "articleId" ## T.pack . show . articleId;
"articleTitle" ## title;
"articleContent"
##
T.pack
$ L.unpack
$ X.renderHtml $ markdownToHtml $ T.pack $ show content }’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment