From: Neil Smith Date: Fri, 13 Dec 2019 15:49:10 +0000 (+0000) Subject: Changed the typeclass that NVec depends on X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-19.git;a=commitdiff_plain;h=dd188fd71f76bb33ace34b0886fa32a7145f6b2e Changed the typeclass that NVec depends on --- diff --git a/advent12/src/advent12.hs b/advent12/src/advent12.hs index 043e8d0..ac61359 100644 --- 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