projects
/
advent-of-code-19.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0369563
)
Changed the typeclass that NVec depends on
author
Neil Smith
<neil.git@njae.me.uk>
Fri, 13 Dec 2019 15:49:10 +0000
(15:49 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Fri, 13 Dec 2019 15:49:10 +0000
(15:49 +0000)
advent12/src/advent12.hs
patch
|
blob
|
history
diff --git
a/advent12/src/advent12.hs
b/advent12/src/advent12.hs
index 043e8d096ce7378bff43d3c66d23a4ff1682e835..ac61359be7a29617c50f1377839d67a5c267553a 100644
(file)
--- a/
advent12/src/advent12.hs
+++ b/
advent12/src/advent12.hs
@@
-12,7
+12,7
@@
import Linear (V3(..), V1(..), (^+^), (^-^))
import qualified Data.Vector as V
-class (
Ord
a) => NVec a where
+class (
Eq
a) => NVec a where
(^+^^) :: a -> a -> a
(^-^^) :: a -> a -> a
nvZero :: a