~ubuntu-branches/ubuntu/trusty/agda/trusty

« back to all changes in this revision

Viewing changes to src/full/Agda/Termination/Matrix.hs

  • Committer: Package Import Robot
  • Author(s): Iain Lane, Kiwamu Okabe, Iain Lane
  • Date: 2013-04-10 11:46:43 UTC
  • mfrom: (4.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130410114643-prunhsz59f0fhrdn
Tags: 2.3.2-1
[ Kiwamu Okabe ]
* New patch: Extend haskell-src-exts dependency and fix type miss.

[ Iain Lane ]
* [dfbca48] Imported Upstream version 2.3.2
* [7746bcc] Remove all patches — all upstream.
* [2cdb691] Update build-deps to match control file
* [868ebf4] agda-mode no longer depends on haskell-mode or GHCi.
  Remove dependency and update .el file accordingly
* [9e0ba22] Add agda-bin package here, as the separate package has been
  removed
* [75a240f] agda-mode needs to depend on agda-bin
* [d290f95] Allow Quickcheck up to 2.7. Fix haskeline build-dep.
* [79190e6] Add missing geniplate and parallel BDs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
1
2
-- | Naive implementation of simple matrix library.
2
3
 
3
4
-- Originally copied from Agda1 sources.
96
97
-- | Type of matrices, parameterised on the type of values.
97
98
 
98
99
newtype Matrix i b = M { unM :: Array (MIx i) b }
99
 
  deriving (Eq, Ord)
 
100
  deriving (Eq, Ord, Functor)
100
101
 
101
102
matrixInvariant :: (Num i, Ix i) => Matrix i b -> Bool
102
103
matrixInvariant m =