Skip to content

Commit

Permalink
Mark Conduit modules as Safe/Trustworthy
Browse files Browse the repository at this point in the history
Unfortunately RULES pragmas can't be defined (more accurately, won't fire
if defined) in Safe modules, so Trustworthy is the only option in many
cases.
  • Loading branch information
rimmington committed Jul 31, 2015
1 parent 414412b commit aad6ec9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions conduit/Data/Conduit.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE Safe #-}
-- | If this is your first time with conduit, you should probably start with
-- the tutorial:
-- <https://haskell.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>.
Expand Down
1 change: 1 addition & 0 deletions conduit/Data/Conduit/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE Safe #-}
{-# OPTIONS_HADDOCK not-home #-}
module Data.Conduit.Internal
( -- * Pipe
Expand Down
4 changes: 2 additions & 2 deletions conduit/Data/Conduit/Internal/Conduit.hs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{-# OPTIONS_HADDOCK not-home #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE Trustworthy #-}
module Data.Conduit.Internal.Conduit
( -- ** Types
ConduitM (..)
Expand Down
1 change: 1 addition & 0 deletions conduit/Data/Conduit/Internal/Fusion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE Trustworthy #-}
module Data.Conduit.Internal.Fusion
( -- ** Types
Step (..)
Expand Down
1 change: 1 addition & 0 deletions conduit/Data/Conduit/Internal/List/Stream.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE Trustworthy #-}
module Data.Conduit.Internal.List.Stream where

import Control.Monad (liftM)
Expand Down
2 changes: 1 addition & 1 deletion conduit/Data/Conduit/Internal/Pipe.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE Trustworthy #-}
module Data.Conduit.Internal.Pipe
( -- ** Types
Pipe (..)
Expand Down
1 change: 1 addition & 0 deletions conduit/Data/Conduit/Lift.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE Safe #-}
-- | Allow monad transformers to be run\/eval\/exec in a section of conduit
-- rather then needing to run across the whole conduit. The circumvents many
-- of the problems with breaking the monad transformer laws. For more
Expand Down
1 change: 1 addition & 0 deletions conduit/Data/Conduit/List.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE Trustworthy #-}
-- | Higher-level functions to interact with the elements of a stream. Most of
-- these are based on list functions.
--
Expand Down

0 comments on commit aad6ec9

Please sign in to comment.