Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
isSuffixOf :: Eq a => [a] -> [a] -> Boolghc-internal GHC.Internal.Data.OldList The isSuffixOf function takes two lists and returns True iff the first list is a suffix of the second.
Examples
>>> "ld!" `isSuffixOf` "Hello World!" True
>>> "World" `isSuffixOf` "Hello World!" False
The second list must be finite; however the first list may be infinite:>>> [0..] `isSuffixOf` [0..99] False
>>> [0..99] `isSuffixOf` [0..] * Hangs forever *
stripPrefix :: Eq a => [a] -> [a] -> Maybe [a]ghc-internal GHC.Internal.Data.OldList The stripPrefix function drops the given prefix from a list. It returns Nothing if the list did not start with the prefix given, or Just the list after the prefix, if it does.
Examples
>>> stripPrefix "foo" "foobar" Just "bar"
>>> stripPrefix "foo" "foo" Just ""
>>> stripPrefix "foo" "barfoo" Nothing
>>> stripPrefix "foo" "barfoobaz" Nothing
-
ghc-internal GHC.Internal.Exts Given the pointer to the first block of a CNF and the address of the root object in the old address space, fix up the internal pointers inside the CNF to account for a different position in memory than when it was serialized. This method must be called exactly once after importing a serialized CNF. It returns the new CNF and the new adjusted root address.
-
ghc-internal GHC.Internal.Float No documentation available.
floatRadix :: RealFloat a => a -> Integerghc-internal GHC.Internal.Float a constant function, returning the radix of the representation (often 2)
-
ghc-internal GHC.Internal.Generics Datatype to represent the fixity of a constructor. An infix | declaration directly corresponds to an application of Infix.
-
ghc-internal GHC.Internal.Generics This variant of Fixity appears at the type level.
Infix :: Associativity -> Int -> Fixityghc-internal GHC.Internal.Generics No documentation available.
InfixI :: Associativity -> Nat -> FixityIghc-internal GHC.Internal.Generics No documentation available.
-
ghc-internal GHC.Internal.Generics No documentation available.