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

No instance for (M.Storable (Int32, Float)) #328

Open
wujilingfeng opened this issue Jul 5, 2023 · 1 comment
Open

No instance for (M.Storable (Int32, Float)) #328

wujilingfeng opened this issue Jul 5, 2023 · 1 comment

Comments

@wujilingfeng
Copy link

wujilingfeng commented Jul 5, 2023

I was writing a sparse matrix type

data Sparse_Matrix1= Sp_M1 (M.Array M.S M.Ix2 (Int32,Float)  )  
    deriving (Show)

But it throwed an error

error:
    • No instance for (M.Storable (Int32, Float))
        arising from the first field of ‘Sp_M1’
          (type ‘M.Array M.S M.Ix2 (Int32, Float)’)
      Possible fix:
        use a standalone 'deriving instance' declaration,
          so you can specify the instance context yourself
    • When deriving the instance for (Show Sparse_Matrix1)
      deriving (Show)

How to write a instance for M.Storable (Int32,Float)?

@FransBouma
Copy link
Owner

I don't think you're in the right repository, this is the .NET massive :)

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

2 participants