packages feed

file-embed 0.0.9 → 0.0.9.1

raw patch · 3 files changed

+8/−4 lines, 3 filesdep −HUnitPVP ok

version bump matches the API change (PVP)

Dependencies removed: HUnit

API changes (from Hackage documentation)

Files

Data/FileEmbed.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE OverloadedStrings #-} -- | This module uses template Haskell. Following is a simplified explanation of usage for those unfamiliar with calling Template Haskell functions. ----- The function @embedFile@ in this modules embeds a file into the exceutable+-- The function @embedFile@ in this modules embeds a file into the executable -- that you can use it at runtime. A file is represented as a @ByteString@. -- However, as you can see below, the type signature indicates a value of type -- @Q Exp@ will be returned. In order to convert this into a @ByteString@, you
file-embed.cabal view
@@ -1,5 +1,5 @@ name:            file-embed-version:         0.0.9+version:         0.0.9.1 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>@@ -32,7 +32,6 @@     hs-source-dirs: test     build-depends: base                  , file-embed-                 , HUnit                  , filepath  source-repository head
test/main.hs view
@@ -1,9 +1,14 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} +import Control.Monad (unless) import Data.FileEmbed-import Test.HUnit ((@?=)) import System.FilePath ((</>))++infix 1 @?=++(@?=) :: (Eq a, Show a) => a -> a -> IO ()+actual @?= expected = unless (actual == expected) (error $ "expected: " ++ show expected ++ "\n but got: " ++ show actual)  main :: IO () main = do