Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typeable instance is buggy #31

Open
nushio3 opened this issue Aug 13, 2011 · 0 comments
Open

Typeable instance is buggy #31

nushio3 opened this issue Aug 13, 2011 · 0 comments

Comments

@nushio3
Copy link
Owner

nushio3 commented Aug 13, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant