Skip to content

Instantly share code, notes, and snippets.

@nagisa
Created June 26, 2014 16:56
Show Gist options
  • Save nagisa/34b384f3b8d8b88ee6a0 to your computer and use it in GitHub Desktop.
Save nagisa/34b384f3b8d8b88ee6a0 to your computer and use it in GitHub Desktop.
-- tagsoup 0.13.1 package, ghc 7.8.2
*Main> :m +Text.HTML.TagSoup
*Main Text.HTML.TagSoup> :t renderOptions { optEscape = id, optMinimize = const True, optRawTag = const True }
<interactive>:1:1:
No instance for (Text.StringLike.StringLike t0)
arising from a use of ‘renderOptions’
The type variable ‘t0’ is ambiguous
Note: there are several potential instances:
instance Text.StringLike.StringLike
Data.ByteString.Lazy.Internal.ByteString
-- Defined in ‘Text.StringLike’
instance Text.StringLike.StringLike
Data.ByteString.Internal.ByteString
-- Defined in ‘Text.StringLike’
instance Text.StringLike.StringLike
text-1.1.1.3:Data.Text.Internal.Lazy.Text
-- Defined in ‘Text.StringLike’
...plus two others
In the expression: renderOptions
In the expression:
renderOptions
{optEscape = id, optMinimize = const True, optRawTag = const True}
*Main Text.HTML.TagSoup> :t renderOptions { optEscape = id, optMinimize = const True }
renderOptions { optEscape = id, optMinimize = const True }
:: Text.StringLike.StringLike str => RenderOptions str
*Main Text.HTML.TagSoup> :t renderOptions { optEscape = id, optRawTag = const True }
renderOptions { optEscape = id, optRawTag = const True }
:: Text.StringLike.StringLike str => RenderOptions str
*Main Text.HTML.TagSoup> :t renderOptions { optMinimize = const True, optRawTag = const True }
renderOptions { optMinimize = const True, optRawTag = const True }
:: Text.StringLike.StringLike str => RenderOptions str
*Main Text.HTML.TagSoup> :t RenderOptions { optEscape = id, optMinimize = const True, optRawTag = const True }
RenderOptions { optEscape = id, optMinimize = const True, optRawTag = const True }
:: RenderOptions str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment