Fix stripSuffix' for bytestring < 0.10.8
This commit is contained in:
parent
4032629407
commit
e66074af1c
@ -330,7 +330,7 @@ stripExtension bs path
|
|||||||
#if MIN_VERSION_bytestring(0,10,8)
|
#if MIN_VERSION_bytestring(0,10,8)
|
||||||
stripSuffix' = BS.stripSuffix
|
stripSuffix' = BS.stripSuffix
|
||||||
#else
|
#else
|
||||||
stripSuffix' xs ys = fmap (BS.pack . reverse) $ stripPrefix (reverse $ BS.unpack xs) (reverse $ BS.unpack ys)
|
stripSuffix' xs ys = fmap (BS.pack . reverse) $ L.stripPrefix (reverse $ BS.unpack xs) (reverse $ BS.unpack ys)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user