nushio3 / Paraiso

a Parallel Integration Scheme Organizer for partial differential equations solvers
http://www.paraiso-lang.org/wiki/
BSD 3-Clause "New" or "Revised" License
49 stars 8 forks source link

Typeable instance is buggy #31

Open nushio3 opened 12 years ago

nushio3 commented 12 years ago

Vectors are made typeable now.

instance (Typeable a, Typeable (n a)) => Typeable (n :~ a) where typeOf (vx :~ x) = mkTyConApp (mkTyCon "Language.Paraiso.Tensor.:~") [typeOf vx, typeOf x]

Tensor of rank 1 (vectors) and arbitral dimensions are well typed, but taking typeOf of higher rank tensors results in Prelude::undefined.

look for the reason. and also you should migrate to mkTyCon3, when base 4.4 is available.