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

Joe Hillenbrand joehillen at gmail.com
Wed Jun 7 07:08:04 UTC 2017


Is onFiles[1] what you're looking for?

https://hackage.haskell.org/package/turtle-1.3.5/docs/Turtle-Prelude.html#v:onFiles

On Tue, Jun 6, 2017 at 10:16 PM, Ruben Astudillo <ruben.astud at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.


More information about the Haskell-Cafe mailing list