Skip to content

mxswd/editable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

editable

Derive editors for data types.

Add deriving Generic and instance Editable Foo to your data type, and you can launch an editor for it with editor :: Editable a => a -> IO a.

{-# LANGUAGE DeriveGeneric #-}
module Demo where

import Data.Editable
import GHC.Generics

data Foo = Bar String Int | Baz Int
  deriving (Show, Generic)

instance Editable Foo

example

Setup

cabal sandbox init
cabal install --only-dependencies
cabal exec ghci demo.hs
# main

About

Derive editors for data types.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published