Skip to content

Commit

Permalink
Use Course.List instead of Data.List, due to Issue #166.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorris committed Oct 19, 2015
1 parent 4a27116 commit d796dc5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Course/Applicative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -255,19 +255,19 @@ lift4 =
-- | Apply, discarding the value of the first argument.
-- Pronounced, right apply.
--
-- >>> [1,2,3] *> [4,5,6]
-- >>> (1 :. 2 :. 3 :. Nil) *> (4 :. 5 :. 6 :. Nil)
-- [4,5,6,4,5,6,4,5,6]
--
-- >>> [1,2] *> [4,5,6]
-- >>> (1 :. 2 :. Nil) *> (4 :. 5 :. 6 :. Nil)
-- [4,5,6,4,5,6]
--
-- >>> [1,2,3] *> [4,5]
-- >>> (1 :. 2 :. 3 :. Nil) *> (4 :. 5 :. Nil)
-- [4,5,4,5,4,5]
--
-- >>> Full 7 *> Full 8
-- Full 8
--
-- prop> [a,b,c] *> [x,y,z] == [x,y,z,x,y,z,x,y,z]
-- prop> (a :. b :. c :. Nil) *> (x :. y :. z :. Nil) == (x :. y :. z :. x :. y :. z :. x :. y :. z :. Nil)
--
-- prop> Full x *> Full y == Full y
(*>) ::
Expand All @@ -281,19 +281,19 @@ lift4 =
-- | Apply, discarding the value of the second argument.
-- Pronounced, left apply.
--
-- >>> [1,2,3] <* [4,5,6]
-- >>> (1 :. 2 :. 3 :. Nil) <* (4 :. 5 :. 6 :. Nil)
-- [1,1,1,2,2,2,3,3,3]
--
-- >>> [1,2] <* [4,5,6]
-- >>> (1 :. 2 :. Nil) <* (4 :. 5 :. 6 :. Nil)
-- [1,1,1,2,2,2]
--
-- >>> [1,2,3] <* [4,5]
-- >>> (1 :. 2 :. 3 :. Nil) <* (4 :. 5 :. Nil)
-- [1,1,2,2,3,3]
--
-- >>> Full 7 <* Full 8
-- Full 7
--
-- prop> [x,y,z] <* [a,b,c] == [x,x,x,y,y,y,z,z,z]
-- prop> (x :. y :. z :. Nil) <* (a :. b :. c :. Nil) == (x :. x :. x :. y :. y :. y :. z :. z :. z :. Nil)
--
-- prop> Full x <* Full y == Full x
(<*) ::
Expand Down

0 comments on commit d796dc5

Please sign in to comment.