Skip to content

Constraint missing on type parameter #74

@flip111

Description

@flip111
deriving instance Eq A

data Maybe' a = Nothing' | Just' a
  deriving (Generic, Eq)

myTypes :: [SumType 'Haskell]
myTypes =
  [ let p = (Proxy :: Proxy (Maybe' A)) in equal p (mkSumType p)
  ]

run :: IO ()
run = writePSTypes "/home/flip111/types" (buildBridge defaultBridge) myTypes

The generated purescript code looks like this

data Maybe' a =
    Nothing'
  | Just' a

derive instance eqMaybe' :: Eq (Maybe' a)

But instead the instance should be like this

derive instance eqMaybe' :: Eq a => Eq (Maybe' a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions