fix build with path-pieces-0.1.4

This commit is contained in:
Joey Hess 2014-07-13 19:24:38 -04:00
parent d4b6458efd
commit 542a8288a8
2 changed files with 3 additions and 1 deletions

View file

@ -154,9 +154,11 @@ data RemovableDrive = RemovableDrive
data RepoKey = RepoKey KeyId | NoRepoKey
deriving (Read, Show, Eq, Ord)
#if ! MIN_VERSION_path_pieces(0,1,4)
instance PathPiece Bool where
toPathPiece = pack . show
fromPathPiece = readish . unpack
#endif
instance PathPiece RemovableDrive where
toPathPiece = pack . show