Skip to content

Commit f7e3e15

Browse files
committed
Updates for 0.7
1 parent 95b78bb commit f7e3e15

11 files changed

+23
-1
lines changed

src/Control/Alt.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Alt where
44

5+
import Prelude
6+
57
-- | The `Alt` type class identifies an associative operation on a type
68
-- | constructor. It is similar to `Semigroup`, except that it applies to
79
-- | types of kind `* -> *`, like `Array` or `List`, rather than concrete types

src/Control/Alternative.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
module Control.Alternative where
55

6+
import Prelude
7+
68
import Control.Alt
79
import Control.Lazy
810
import Control.Plus

src/Control/Apply.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Apply where
44

5+
import Prelude
6+
57
infixl 4 <*
68
infixl 4 *>
79

src/Control/Bind.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Bind where
44

5+
import Prelude
6+
57
infixr 1 =<<
68
infixr 1 >=>
79
infixr 1 <=<

src/Control/Comonad.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Comonad where
44

5+
import Prelude
6+
57
import Control.Extend
68

79
-- | `Comonad` extends the `Extend` class with the `extract` function

src/Control/Extend.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Extend where
44

5+
import Prelude
6+
57
infixl 1 =>>
68
infixr 1 <<=
79
infixr 1 =>=

src/Control/Lazy.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
module Control.Lazy where
55

6+
import Prelude
7+
68
-- | The `Lazy` class represents types which allow evaluation of values
79
-- | to be _deferred_.
810
-- |

src/Control/Monad.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Monad where
44

5+
import Prelude
6+
57
-- | Perform a monadic action when a condition is true.
68
when :: forall m. (Monad m) => Boolean -> m Unit -> m Unit
79
when true m = m

src/Control/MonadPlus.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.MonadPlus where
44

5+
import Prelude
6+
57
import Control.Alternative
68
import Control.Plus
79

@@ -23,7 +25,7 @@ class (Monad m, Alternative m) <= MonadPlus m
2325
-- | ```purescript
2426
-- | import Data.Array
2527
-- |
26-
-- | factors :: Number -> [Number]
28+
-- | factors :: Number -> Array Number
2729
-- | factors n = do
2830
-- | a <- 1 .. n
2931
-- | b <- 1 .. a

src/Control/Plus.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Control.Plus where
44

5+
import Prelude
6+
57
import Control.Alt
68

79
-- | The `Plus` type class extends the `Alt` type class with a value that

src/Data/Functor.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Data.Functor where
44

5+
import Prelude
6+
57
infixl 4 <$
68
infixl 4 $>
79

0 commit comments

Comments
 (0)