File: Class.hs

package info (click to toggle)
haskell-algebra 2.1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 420 kB
  • sloc: haskell: 4,758; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
module Numeric.Algebra.Distinguished.Class
  ( Distinguished(..)
  ) where

import Numeric.Covector

-- a basis with a distinguished point
class Distinguished t where
  e :: t

instance Distinguished a => Distinguished (Covector r a) where
  e = return e