Fix stripSuffix' for bytestring < 0.10.8

This commit is contained in:
Julian Ospald 2016-05-24 03:29:40 +02:00
parent 4032629407
commit e66074af1c
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -330,7 +330,7 @@ stripExtension bs path
#if MIN_VERSION_bytestring(0,10,8)
stripSuffix' = BS.stripSuffix
#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