Comments (1)
I've played around with switching foldl to foldr, changing to strict Maps and such, but in the end what worked was to make the result itself strict before the handle is closed
diff --git a/hackage/MissingH-1.6.0.1/src/Data/MIME/Types.hs b/hackage/MissingH-1.6.0.1/src/Data/MIME/Types.hs
index ecdfd03..cc16134 100644
--- a/hackage/MissingH-1.6.0.1/src/Data/MIME/Types.hs
+++ b/hackage/MissingH-1.6.0.1/src/Data/MIME/Types.hs
@@ -18,6 +18,7 @@ Utilities for guessing MIME types of files.
Written by John Goerzen, jgoerzen\@complete.org
-}
+{-# LANGUAGE BangPatterns #-}
module Data.MIME.Types (-- * Creating Lookup Objects
defaultmtd,
readMIMETypes,
@@ -190,7 +191,7 @@ readSystemMIMETypes mtd =
case fn of
Left (_ :: Control.Exception.IOException) -> return inputobj
Right h -> do
- x <- hReadMIMETypes inputobj True h
+ !x <- hReadMIMETypes inputobj True h
hClose h
return x
in
from missingh.
Related Issues (20)
- Package dependency for tests 'testpack' is no longer maintained HOT 2
- Can Data.String.Utils be marked "Safe"? HOT 2
- ambiguous import HOT 1
- GHC 8.0.1-rc4 build failure HOT 8
- build on windows fails HOT 1
- split is inefficient; can be sped up over 2x for single character delimiter HOT 9
- Drop splitWS in favor of words from Prelude HOT 2
- MissingH 1.4.0.1 and parsec 3.1.12.0 are not compatible HOT 1
- startswith should have its arguments flipped HOT 1
- Incompatible with LTS nightly (GHC 8.6.1)? HOT 17
- MissingH 1.4.1.0 was deprecated? HOT 3
- Compilation error with GHC 8.6.4, 8.6.5 HOT 3
- Release a new version compatible with GHC 8.8.2 HOT 4
- cannot cabal-install with ghc 9.0.1 due to base <4.15 dependency HOT 13
- Drop regex dependency? HOT 4
- random 1.2.0 compatibility HOT 4
- Version 1.5.0.0 cannot be built on windows HOT 2
- ghc-9.4.3 haddock crashes in Stackage Nightly HOT 3
- Build failure with unix-2.8 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from missingh.