Skip to content

Instantly share code, notes, and snippets.

@ExpHP
Created March 28, 2017 23:57
Show Gist options
  • Select an option

  • Save ExpHP/16244a04abe9a3810b4172611aeeea29 to your computer and use it in GitHub Desktop.

Select an option

Save ExpHP/16244a04abe9a3810b4172611aeeea29 to your computer and use it in GitHub Desktop.
turtle please
{-# LANGUAGE PackageImports #-}
module Turtle.Please
( module Turtle
, fold, foldIO
) where
import qualified "turtle" Turtle as Turtle.Naughty
import "turtle" Turtle hiding (fold, foldIO)
fold :: (MonadIO io)=> Fold a b -> Shell a -> io b
fold = flip Turtle.Naughty.fold
foldIO :: (MonadIO io)=> FoldM IO a b -> Shell a -> io b
foldIO = flip Turtle.Naughty.foldIO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment