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.