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

Getting seg fault while trying to use appendSymbol #50

Closed
mageshb opened this issue Mar 13, 2017 · 3 comments
Closed

Getting seg fault while trying to use appendSymbol #50

mageshb opened this issue Mar 13, 2017 · 3 comments

Comments

@mageshb
Copy link

mageshb commented Mar 13, 2017

Here is test code

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module Lib
    ( someFunc
    ) where

import Data.Constraint
import Data.Constraint.Symbol
import Data.Proxy
import GHC.TypeLits

someFunc :: IO ()
someFunc = do
  putStrLn $ ((symbolVal (Proxy :: Proxy ("Foo" ++ "Bar")))
              \\ (appendSymbol :: ((KnownSymbol "Foo", KnownSymbol "Bar") :- KnownSymbol ("Foo" ++ "Bar")))
             )

It core dumped in GHC 8.0.1 as well in 8.0.2
Is it a bug or am I missing something here

@RyanGlScott
Copy link
Collaborator

It is a bug, and it was fixed upstream in 55836e5. I'll try to get a new release on Hackage soon with this fix.

@mageshb
Copy link
Author

mageshb commented Mar 13, 2017

Thank you @RyanGlScott

@RyanGlScott
Copy link
Collaborator

I've uploaded constraints-0.9.1 to Hackage with this fix.

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