Skip to content

Commit

Permalink
Define proper MINIMAL pragma for class Ix
Browse files Browse the repository at this point in the history
Summary: This addresses #10142

Reviewers: goldfire, austin, ekmett

Reviewed By: austin, ekmett

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D709

GHC Trac Issues: #10142
  • Loading branch information
hvr committed Mar 7, 2015
1 parent 47b5b5c commit 7a2d65a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/base/GHC/Arr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ default ()
--
-- * @'rangeSize' (l,u) == 'length' ('range' (l,u))@ @ @
--
-- Minimal complete instance: 'range', 'index' and 'inRange'.
--
class (Ord a) => Ix a where
{-# MINIMAL range, (index | unsafeIndex), inRange #-}

-- | The list of values in the subrange defined by a bounding pair.
range :: (a,a) -> [a]
-- | The position of a subscript in the subrange.
Expand Down
2 changes: 2 additions & 0 deletions libraries/base/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
* Add/expose `rnfTypeRep`, `rnfTyCon`, `TypeRepHash`, and
`TyConHash` helpers to `Data.Typeable`.
* Define proper `MINIMAL` pragma for `class Ix`. (#10142)
## 4.7.0.2 *Dec 2014*
* Bundled with GHC 7.8.4
Expand Down

0 comments on commit 7a2d65a

Please sign in to comment.