@hackage editable1.0.0.1

Interactive editors for Generics

  • Categories

    • License

      BSD-2-Clause

    • Maintainer

      maxwellswadling@gmail.com

    • Versions

    Editable can 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.

    module Demo where
    
    import Data.Editable
    import GHC.Generics
    
    data Foo = Bar String Int | Baz Int
      deriving (Show, Generic)
    
    instance Editable Foo