Skip to content

Commit

Permalink
Merge branch 'ghc-821'
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Jul 23, 2017
2 parents 6392cd7 + de653cc commit 5fc6eb1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ matrix:
- env: OLDCABAL=no CABALVER=1.24 GHCVER=8.0.1 ALLOWNEWER=--allow-newer
compiler: ": #GHC 8.0.1"
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1], sources: [hvr-ghc]}}
- env: OLDCABAL=no CABALVER=1.24 GHCVER=8.2.1
compiler: ": #GHC 8.2.1"
addons: {apt: {packages: [cabal-install-1.24,ghc-8.2.1], sources: [hvr-ghc]}}

before_install:
- unset CC
Expand Down
4 changes: 2 additions & 2 deletions insomnia.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- see http://haskell.org/cabal/users-guide/

name: insomnia
version: 0.0.4.1
version: 0.0.4.2
synopsis: Typed probabilistic programming language
description: Insomnia is a typed, modular probabilistic programming language.
.
Expand Down Expand Up @@ -32,7 +32,7 @@ build-type: Simple
extra-source-files:
examples/*.ism
cabal-version: >=1.10
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1, GHC == 8.2.1

library
exposed-modules:
Expand Down
8 changes: 7 additions & 1 deletion src/Insomnia/Types.hs-boot
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE MultiParamTypeClasses, CPP #-}
module Insomnia.Types where

#if MIN_VERSION_base(4,7,0)
#else
import Data.Typeable (Typeable)
#endif

import Control.Lens (Traversal)

Expand All @@ -19,7 +22,10 @@ instance Show Kind
instance Show Type
instance Show TypePath

#if MIN_VERSION_base(4,7,0)
#else
instance Typeable Type
#endif

instance Alpha Kind
instance Alpha Type
Expand Down
11 changes: 10 additions & 1 deletion src/Insomnia/ValueConstructor.hs-boot
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE MultiParamTypeClasses,CPP #-}
module Insomnia.ValueConstructor where

#if MIN_VERSION_base(4,7,0)
#else
import Data.Typeable (Typeable)
#endif
import Unbound.Generics.LocallyNameless (Alpha)

data ValueConstructor

data ConstructorDef

instance Show ConstructorDef
#if MIN_VERSION_base(4,7,0)
#else
instance Typeable ConstructorDef
#endif
instance Alpha ConstructorDef

instance Show ValueConstructor
#if MIN_VERSION_base(4,7,0)
#else
instance Typeable ValueConstructor
#endif
instance Alpha ValueConstructor

0 comments on commit 5fc6eb1

Please sign in to comment.