Skip to content

Commit

Permalink
add Control.Monad imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cdornan committed Oct 14, 2023
1 parent b5cf96c commit f50d64b
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 0 deletions.
23 changes: 23 additions & 0 deletions random-source/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
2 changes: 2 additions & 0 deletions random-source/src/Data/Random/Source.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module Data.Random.Source
, monadRandom, randomSource
) where

import Control.Monad

import Data.Word

import Data.Random.Internal.Source
Expand Down
1 change: 1 addition & 0 deletions random-source/src/Data/Random/Source/Internal/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Language.Haskell.TH.Extras
import qualified Language.Haskell.TH.FlexibleDefaults as FD

import Control.Monad.Reader
import Control.Monad(when)

data Method
= GetPrim
Expand Down
1 change: 1 addition & 0 deletions random-source/src/Data/Random/Source/MWC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Data.Random.Source.MWC
import Data.Random.Internal.Words
import Data.Random.Source
import System.Random.MWC
import Control.Monad
import Control.Monad.ST
import Control.Monad.Reader
import Control.Monad.Primitive
Expand Down
1 change: 1 addition & 0 deletions random-source/src/Data/Random/Source/PureMT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module Data.Random.Source.PureMT
, getRandomPrimFromMTRef
) where

import Control.Monad
import Control.Monad.State
import Control.Monad.RWS
import qualified Control.Monad.State.Strict as S
Expand Down
8 changes: 8 additions & 0 deletions random-source/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resolver: nightly-2023-10-09

packages:
- .

allow-newer: true

extra-deps: []
12 changes: 12 additions & 0 deletions random-source/stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
sha256: 917b397e40f0d5bc99e350f5bc5921456f091cf35b61a869838e14dfbc46e6e1
size: 684486
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2023/10/9.yaml
original: nightly-2023-10-09

0 comments on commit f50d64b

Please sign in to comment.