Skip to content

Instantly share code, notes, and snippets.

@bergmark
Created January 17, 2012 12:10
Show Gist options
  • Select an option

  • Save bergmark/1626445 to your computer and use it in GitHub Desktop.

Select an option

Save bergmark/1626445 to your computer and use it in GitHub Desktop.
Prelude Text.Regex.Posix> "bar" =~ "(foo|bar)" :: Bool
<interactive>:1:7:
No instances for (RegexMaker Regex CompOption ExecOption [Char],
RegexContext Regex [Char] Bool)
arising from a use of `=~'
Possible fix:
add instance declarations for
(RegexMaker Regex CompOption ExecOption [Char],
RegexContext Regex [Char] Bool)
In the expression: "bar" =~ "(foo|bar)" :: Bool
In an equation for `it': it = "bar" =~ "(foo|bar)" :: Bool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment