Created
December 30, 2013 20:13
-
-
Save Philonous/8187461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Compile with ghc -O2 -fforce-recomp | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE GADTs #-} | |
module Test where | |
import Data.Singletons.TH | |
data DBusSimpleType | |
= TypeByte | |
| TypeBoolean | |
| TypeInt16 | |
| TypeUInt16 | |
| TypeInt64 | |
| TypeUInt64 | |
| TypeDouble | |
| TypeUnixFD | |
| TypeString | |
| TypeObjectPath | |
| TypeSignatuer | |
deriving (Show, Read, Eq) | |
genSingletons [''DBusSimpleType] | |
singDecideInstances [''DBusSimpleType] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment