Strictness annotations on Content
This commit is contained in:
parent
c009067b11
commit
b0c6651ac6
@ -67,10 +67,10 @@ import Data.String (IsString (fromString))
|
|||||||
import Network.Wai (FilePart)
|
import Network.Wai (FilePart)
|
||||||
import Data.Conduit (Source, ResourceT, Flush)
|
import Data.Conduit (Source, ResourceT, Flush)
|
||||||
|
|
||||||
data Content = ContentBuilder Builder (Maybe Int) -- ^ The content and optional content length.
|
data Content = ContentBuilder !Builder !(Maybe Int) -- ^ The content and optional content length.
|
||||||
| ContentSource (Source (ResourceT IO) (Flush Builder))
|
| ContentSource !(Source (ResourceT IO) (Flush Builder))
|
||||||
| ContentFile FilePath (Maybe FilePart)
|
| ContentFile !FilePath !(Maybe FilePart)
|
||||||
| ContentDontEvaluate Content
|
| ContentDontEvaluate !Content
|
||||||
|
|
||||||
-- | Zero-length enumerator.
|
-- | Zero-length enumerator.
|
||||||
emptyContent :: Content
|
emptyContent :: Content
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user