Skip to content

Instantly share code, notes, and snippets.

@Philonous
Created December 30, 2013 20:13
Show Gist options
  • Save Philonous/8187461 to your computer and use it in GitHub Desktop.
Save Philonous/8187461 to your computer and use it in GitHub Desktop.
-- 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