Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
unix-compat System.PosixCompat.Unistd No documentation available.
SystemID :: String -> String -> String -> String -> String -> SystemIDunix-compat System.PosixCompat.Unistd No documentation available.
-
unix-compat System.PosixCompat.Unistd No documentation available.
-
A Haskell 98 logically uninhabited data type A Haskell 98 logically uninhabited data type, used to indicate that a given term should not exist.
void :: Functor f => f a -> f ()pipes Pipes void value discards or ignores the result of evaluation, such as the return value of an IO action.
Examples
Replace the contents of a Maybe Int with unit:>>> void Nothing Nothing
>>> void (Just 3) Just ()
Replace the contents of an Either Int Int with unit, resulting in an Either Int ():>>> void (Left 8675309) Left 8675309
>>> void (Right 8675309) Right ()
Replace every element of a list with unit:>>> void [1,2,3] [(),(),()]
Replace the second element of a pair with unit:>>> void (1,2) (1,())
Discard the result of an IO action:>>> mapM print [1,2] 1 2 [(),()]
>>> void $ mapM print [1,2] 1 2
-
cmdargs System.Console.CmdArgs.Explicit Items that are hidden (not displayed in the help message).
-
Standard spec's for GenValidity instances Note: There are companion packages for this library:
-
To use the Spec functions in this module, you will need TypeApplications. The most interesting functions in this module for most uses are:
- genValidSpec
- eqSpec
- ordSpec
- producesValidsOnValids
- forAllValid
- shouldBeValid
arbitraryGeneratesOnlyValid :: (Show a, Validity a, Arbitrary a) => Propertygenvalidity-hspec Test.Validity arbitrary only generates valid data
arbitraryGeneratesOnlyValid @Int
forAllValid :: (Show a, GenValid a, Testable prop) => (a -> prop) -> Propertygenvalidity-hspec Test.Validity No documentation available.