Skip to content

Commit 46f573a

Browse files
RyanGlScottpaf31
authored andcommitted
Fix GHC 8.0.2 build (and fix purescript#2421) (purescript#2422)
* Fix GHC 8.0.2 build (and fix purescript#2421) * Update CONTRIBUTORS.md
1 parent 1ecd787 commit 46f573a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ This file lists the contributors to the PureScript compiler project, and the ter
8484
- [@zudov](https://github.com/zudov) (Konstantin Zudov) My existing contributions and all future contributions until further notice are Copyright Konstantin Zudov, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
8585
- [@brandonhamilton](https://github.com/brandonhamilton) (Brandon Hamilton) My existing contributions and all future contributions until further notice are Copyright Brandon Hamilton, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
8686
- [@bbqbaron](https://github.com/bbqbaron) (Eric Loren) My existing contributions and all future contributions until further notice are Copyright Eric Loren, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
87+
- [@RyanGlScott](https://github.com/RyanGlScott) (Ryan Scott) My existing contributions and all future contributions until further notice are Copyright Ryan Scott, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
8788

8889
### Companies
8990

src/Control/Monad/Supply/Class.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--
44

55
{-# LANGUAGE DefaultSignatures #-}
6+
{-# LANGUAGE TypeFamilies #-}
67

78
module Control.Monad.Supply.Class where
89

@@ -15,9 +16,9 @@ import Control.Monad.Writer
1516
class Monad m => MonadSupply m where
1617
fresh :: m Integer
1718
peek :: m Integer
18-
default fresh :: MonadTrans t => t m Integer
19+
default fresh :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer
1920
fresh = lift fresh
20-
default peek :: MonadTrans t => t m Integer
21+
default peek :: (MonadTrans t, MonadSupply n, m ~ t n) => m Integer
2122
peek = lift peek
2223

2324
instance Monad m => MonadSupply (SupplyT m) where

0 commit comments

Comments
 (0)