Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
dist
.cabal-sandbox
*.swp
*.aux
*.chi
*.chs.h
*.dyn_hi
*.dyn_o
*.eventlog
*.hi
*.hie
*.hp
*.o
*.prof
*.swo
*.swp
.HTF/
.cabal-sandbox/
.ghc.environment.*
.hpc
.hsenv
.stack-work/
cabal-dev
cabal.project.local
cabal.project.local~
cabal.sandbox.config
dist
dist-*
3 changes: 2 additions & 1 deletion src/Graphics/Text/TrueType/FontFolders.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import Graphics.Text.TrueType.Header
import Graphics.Text.TrueType.Name

import Control.DeepSeq (($!!))
import Data.List

catchAny :: IO a -> (E.SomeException -> IO a) -> IO a
catchAny = E.catch
Expand Down Expand Up @@ -200,7 +201,7 @@ buildFontCache loader = do
<*> build rest
else do
isFile <- doesFileExist n
if isFile then do
if isFile && (".ttf" `isSuffixOf` n) then do
f <- loader n
case f of
Nothing -> build rest
Expand Down