Gabriella439 / turtle

Shell programming, Haskell style
BSD 3-Clause "New" or "Revised" License
940 stars 90 forks source link

Expose Turtle.Format.Format constructor #418

Closed unclechu closed 2 years ago

unclechu commented 2 years ago

I was trying to implement some abstraction on top of Turtle to redirect the default output (stdout and/or stderr) to a logger function within some monad where the logger is available. While I was able to implement most of the Turtle functions in one way or another it turned out it’s not that trivial to implement custom printf and eprintf since (>>-) of Turtle.Format.Format is not exposed.