Skip to content

Commit b7f296b

Browse files
Merge pull request #96 from iconnect/ghc-9.6
add Control.Monad imports
2 parents b5cf96c + f50d64b commit b7f296b

File tree

7 files changed

+48
-0
lines changed

7 files changed

+48
-0
lines changed

random-source/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
dist
2+
dist-*
3+
cabal-dev
4+
*.o
5+
*.hi
6+
*.hie
7+
*.chi
8+
*.chs.h
9+
*.dyn_o
10+
*.dyn_hi
11+
.hpc
12+
.hsenv
13+
.cabal-sandbox/
14+
cabal.sandbox.config
15+
*.prof
16+
*.aux
17+
*.hp
18+
*.eventlog
19+
.stack-work/
20+
cabal.project.local
21+
cabal.project.local~
22+
.HTF/
23+
.ghc.environment.*

random-source/src/Data/Random/Source.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module Data.Random.Source
2424
, monadRandom, randomSource
2525
) where
2626

27+
import Control.Monad
28+
2729
import Data.Word
2830

2931
import Data.Random.Internal.Source

random-source/src/Data/Random/Source/Internal/TH.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Language.Haskell.TH.Extras
1414
import qualified Language.Haskell.TH.FlexibleDefaults as FD
1515

1616
import Control.Monad.Reader
17+
import Control.Monad(when)
1718

1819
data Method
1920
= GetPrim

random-source/src/Data/Random/Source/MWC.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module Data.Random.Source.MWC
1818
import Data.Random.Internal.Words
1919
import Data.Random.Source
2020
import System.Random.MWC
21+
import Control.Monad
2122
import Control.Monad.ST
2223
import Control.Monad.Reader
2324
import Control.Monad.Primitive

random-source/src/Data/Random/Source/PureMT.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module Data.Random.Source.PureMT
2424
, getRandomPrimFromMTRef
2525
) where
2626

27+
import Control.Monad
2728
import Control.Monad.State
2829
import Control.Monad.RWS
2930
import qualified Control.Monad.State.Strict as S

random-source/stack.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resolver: nightly-2023-10-09
2+
3+
packages:
4+
- .
5+
6+
allow-newer: true
7+
8+
extra-deps: []

random-source/stack.yaml.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
sha256: 917b397e40f0d5bc99e350f5bc5921456f091cf35b61a869838e14dfbc46e6e1
10+
size: 684486
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2023/10/9.yaml
12+
original: nightly-2023-10-09

0 commit comments

Comments
 (0)