fix build with path-pieces-0.1.4
This commit is contained in:
parent
d4b6458efd
commit
542a8288a8
2 changed files with 3 additions and 1 deletions
|
@ -154,9 +154,11 @@ data RemovableDrive = RemovableDrive
|
||||||
data RepoKey = RepoKey KeyId | NoRepoKey
|
data RepoKey = RepoKey KeyId | NoRepoKey
|
||||||
deriving (Read, Show, Eq, Ord)
|
deriving (Read, Show, Eq, Ord)
|
||||||
|
|
||||||
|
#if ! MIN_VERSION_path_pieces(0,1,4)
|
||||||
instance PathPiece Bool where
|
instance PathPiece Bool where
|
||||||
toPathPiece = pack . show
|
toPathPiece = pack . show
|
||||||
fromPathPiece = readish . unpack
|
fromPathPiece = readish . unpack
|
||||||
|
#endif
|
||||||
|
|
||||||
instance PathPiece RemovableDrive where
|
instance PathPiece RemovableDrive where
|
||||||
toPathPiece = pack . show
|
toPathPiece = pack . show
|
||||||
|
|
|
@ -191,7 +191,7 @@ Executable git-annex
|
||||||
yesod, yesod-default, yesod-static, yesod-form, yesod-core,
|
yesod, yesod-default, yesod-static, yesod-form, yesod-core,
|
||||||
http-types, transformers, wai, wai-extra, warp, warp-tls,
|
http-types, transformers, wai, wai-extra, warp, warp-tls,
|
||||||
blaze-builder, crypto-api, hamlet, clientsession,
|
blaze-builder, crypto-api, hamlet, clientsession,
|
||||||
template-haskell, data-default, aeson,
|
template-haskell, data-default, aeson, path-pieces,
|
||||||
shakespeare
|
shakespeare
|
||||||
CPP-Options: -DWITH_WEBAPP
|
CPP-Options: -DWITH_WEBAPP
|
||||||
if flag(Webapp) && flag (Webapp-secure)
|
if flag(Webapp) && flag (Webapp-secure)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue