Skip to content

Commit

Permalink
Use explicit imports in Embed
Browse files Browse the repository at this point in the history
More consistent. Useful since we effectively lose IDE features due to the CPP.
  • Loading branch information
georgefst committed Dec 22, 2020
1 parent a38427c commit 776c798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haskell/src/Embed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define GET_FILE(FILE) decodeUtf8 $(embedFile $ FILE)
{-# LANGUAGE TemplateHaskell #-}
module Embed where
import Data.FileEmbed
import Data.FileEmbed (embedFile)
import Data.Text.Encoding (decodeUtf8)

#else
Expand All @@ -20,7 +20,7 @@ import System.IO.Unsafe (unsafePerformIO)
#endif

import Data.Text (Text)
import System.FilePath
import System.FilePath ((</>))

{-# NOINLINE mainCSS #-}
{-# NOINLINE elmJS #-}
Expand Down

0 comments on commit 776c798

Please sign in to comment.