CurryInfo: filepath-3.0.0 / System.FilePath.isExtensionOf

definition:
isExtensionOf :: String -> FilePath -> Bool
isExtensionOf extension path = case extension of
  ext@('.':_) -> isSuffixOf ext       $ takeExtensions path
  ext         -> isSuffixOf ('.':ext) $ takeExtensions path
demand:
argument 1
deterministic:
deterministic operation
documentation:
-- | Does the given filename have the specified extension?
--
-- > "png" `isExtensionOf` "/directory/file.png" == True
-- > ".png" `isExtensionOf` "/directory/file.png" == True
-- > ".tar.gz" `isExtensionOf` "bar/foo.tar.gz" == True
-- > "ar.gz" `isExtensionOf` "bar/foo.tar.gz" == False
-- > "png" `isExtensionOf` "/directory/file.png.jpg" == False
-- > "csv/table.csv" `isExtensionOf` "/data/csv/table.csv" == False
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_) |-> _}
name:
isExtensionOf
precedence:
no precedence defined
result-values:
_
signature:
String -> String -> Prelude.Bool
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term