Skip to content

Commit

Permalink
remove imports for openFile
Browse files Browse the repository at this point in the history
Already in `RIO`
  • Loading branch information
GoNZooo committed Nov 25, 2021
1 parent e8d641b commit 7883db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions basics/08-readert.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ a composite type that holds several things:

```haskell
import RIO
import System.IO (hPutStrLn, openFile, print)
import System.IO (hPutStrLn, print)

data ApplicationState = ApplicationState
{ string :: String,
Expand Down Expand Up @@ -139,7 +139,7 @@ that stack and not be forced to write it out everywhere we use it:

```haskell
import RIO
import System.IO (hPutStrLn, openFile, print)
import System.IO (hPutStrLn, print)

-- type AppMonad a = ReaderT ApplicationState IO a
type AppMonad = ReaderT ApplicationState IO
Expand Down
6 changes: 3 additions & 3 deletions basics/09-has-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the file name or file handle that we are logging with:

```haskell
import RIO
import System.IO (hPutStrLn, openFile, print)
import System.IO (hPutStrLn, print)

-- type AppMonad a = ReaderT ApplicationState IO a
type AppMonad = ReaderT ApplicationState IO
Expand Down Expand Up @@ -62,7 +62,7 @@ of one to generalize `logToFile`:

```haskell
import RIO
import System.IO (hPutStrLn, openFile, print)
import System.IO (hPutStrLn, print)

-- type AppMonad a = ReaderT ApplicationState IO a
type AppMonad = ReaderT ApplicationState IO
Expand Down Expand Up @@ -119,7 +119,7 @@ to support any monad transformer stack, however, we can go further:

```haskell
import RIO
import System.IO (hPutStrLn, openFile, print)
import System.IO (hPutStrLn, print)

-- type AppMonad a = ReaderT ApplicationState IO a
type AppMonad = ReaderT ApplicationState IO
Expand Down

0 comments on commit 7883db6

Please sign in to comment.