[Haskell-cafe] Turtle library : grepping on Text vs FilePath

Ruben Astudillo ruben.astud at gmail.com
Wed Jun 7 05:16:04 UTC 2017


Dear list

On the Turtle library, the grep function got the following signature

    grep :: Pattern a -> Shell Line -> Shell Line

For it to filter output of the `ls :: FilePath -> Shell FilePath` I got
to fmap and transform via de Turtle.Format or Turtle.Line modules. Is
this an indicator I shouldn't be doing this? Is the library telling me
to use `find`? or is just accidental?

-- 
-- Ruben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170607/4b14e5ca/attachment.sig>


More information about the Haskell-Cafe mailing list