krisajenkins / elm-export

Create Elm types and JSON decoders from Haskell source.
Eclipse Public License 1.0
116 stars 47 forks source link

Types of kind * -> * #24

Open iteloo opened 7 years ago

iteloo commented 7 years ago

Are parametrized types supported? E.g. How would I turn a Haskell type

data Tree a = Leaf a | Node (Tree a) (Tree a)
  deriving (Generic, ElmType)

into an Elm declaration

type Tree a = Leaf a | Node (Tree a) (Tree a)

?

iteloo commented 7 years ago

Or even just a simple non-recursive one like

data T a = T Int