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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue