Skip to content

Instantly share code, notes, and snippets.

@funrep
Last active January 1, 2016 23:38
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 funrep/8217423 to your computer and use it in GitHub Desktop.
Save funrep/8217423 to your computer and use it in GitHub Desktop.
pipe inp s = inp >>= \x -> sh $ T.concat ["echo ", "\"", x, "\"", " | ", s]
DotHellRC.hs:37:33:
    Couldn't match expected type `Data.Text.Lazy.Internal.Text'
                with actual type `T.Text'
    In the return type of a call of `T.concat'
    In the second argument of `($)', namely
      `T.concat ["echo ", "\"", x, "\"", ....]'
    In the expression: sh $ T.concat ["echo ", "\"", x, "\"", ....]
- import qualified Data.Text as T
+ import qualified Data.Text.Lazy as T
DotHellRC.hs:6:18:
    Could not find module `Data.Text.Lazy'
    It is a member of the hidden package `text-0.11.3.1'.
    Perhaps you need to add `text' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.
[...]
build-depends:       base ==4.6.*,
                     hell,
                     directory,
                     text
[...]
$ ghc-pkg list | grep text
    css-text-0.1.1
    shakespeare-text-1.0.0.6
    text-0.11.3.1

Waaaaaaaaaaaaaaaaaaaaaaaaaaat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment