Skip to content

Commit

Permalink
Remove prelude usage in State too
Browse files Browse the repository at this point in the history
  • Loading branch information
gwils committed Mar 28, 2019
1 parent ae42e80 commit fcd5c02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Course/State.hs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ instance Functor (State s) where
-- >>> runState (pure (+1) <*> pure 0) 0
-- (1,0)
--
-- >>> import qualified Prelude as P
-- >>> runState (State (\s -> ((+3), s P.++ ["apple"])) <*> State (\s -> (7, s P.++ ["banana"]))) []
-- >>> runState (State (\s -> ((+3), s ++ ("apple":.Nil))) <*> State (\s -> (7, s ++ ("banana":.Nil)))) Nil
-- (10,["apple","banana"])
instance Applicative (State s) where
pure ::
Expand Down

0 comments on commit fcd5c02

Please sign in to comment.