summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2014-09-21 20:39:26 +0200
committerNiklas Hambüchen <mail@nh2.me>2014-09-21 20:39:26 +0200
commit420cdfe9517a5e5ade85b3ac200bd69543c793b8 (patch)
tree21d764b3f1ecd8bc3aa789e6278bf503226abce1 /packages
parent0c3bdccc5f3b91f3f9f100a9b3756c6b19c7f195 (diff)
Make docs of generic `instance Element Foo` more prominent
Diffstat (limited to 'packages')
-rw-r--r--packages/base/src/Data/Packed/Internal/Matrix.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/base/src/Data/Packed/Internal/Matrix.hs b/packages/base/src/Data/Packed/Internal/Matrix.hs
index 91a9466..150b978 100644
--- a/packages/base/src/Data/Packed/Internal/Matrix.hs
+++ b/packages/base/src/Data/Packed/Internal/Matrix.hs
@@ -253,7 +253,8 @@ compat m1 m2 = rows m1 == rows m2 && cols m1 == cols m2
253 operations for selected element types. 253 operations for selected element types.
254 It provides unoptimised defaults for any 'Storable' type, 254 It provides unoptimised defaults for any 'Storable' type,
255 so you can create instances simply as: 255 so you can create instances simply as:
256 @instance Element Foo@. 256
257 >instance Element Foo
257-} 258-}
258class (Storable a) => Element a where 259class (Storable a) => Element a where
259 subMatrixD :: (Int,Int) -- ^ (r0,c0) starting position 260 subMatrixD :: (Int,Int) -- ^ (r0,c0) starting position