Commit 398a444b authored by Ryan Scott's avatar Ryan Scott Committed by Ben Gamari
Browse files

Add fixity declaration for Data.List.NonEmpty.!!

We have `infixl 9 !!` for `Data.List.!!`, but not for
`Data.List.NonEmpty.!!`. We ought to.

Test Plan: Read it

Reviewers: bgamari, austin, hvr

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3666
parent e13edee3
......@@ -477,6 +477,7 @@ isPrefixOf (y:ys) (x :| xs) = (y == x) && List.isPrefixOf ys xs
| n == 0 = x
| n > 0 = xs List.!! (n - 1)
| otherwise = errorWithoutStackTrace "NonEmpty.!! negative argument"
infixl 9 !!
-- | The 'zip' function takes two streams and returns a stream of
-- corresponding pairs.
......
......@@ -8,6 +8,7 @@
* Add instances `Num`, `Functor`, `Applicative`, `Monad`, `Semigroup`
and `Monoid` for `Data.Ord.Down` (#13097).
* Add `infixl 9 !!` declaration for `Data.List.NonEmpty.!!`
## 4.10.0.0 *April 2017*
* Bundled with GHC *TBA*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment