Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toPersistValueEnum :: Enum a => a -> PersistValue

    persistent Database.Persist.Class.PersistEntity

    Convenience function for getting a free PersistField instance from a type with an Enum instance. The function derivePersistField from the persistent-template package should generally be preferred. However, if you want to ensure that an ORDER BY clause that uses your field will order rows by the data constructor order, this is a better choice. Example usage in combination with fromPersistValueEnum:

    data SeverityLevel = Low | Medium | Critical | High
    deriving (Enum, Bounded)
    instance PersistField SeverityLevel where
    fromPersistValue = fromPersistValueEnum
    toPersistValue = toPersistValueEnum
    

  2. SqlNumeric :: Word32 -> Word32 -> SqlType

    persistent Database.Persist.Types

    No documentation available.

  3. COptONumber :: String -> WarnLang -> CheckExplanation

    Cabal Distribution.PackageDescription.Check

    No documentation available.

  4. choiceOptFromEnum :: (Bounded b, Enum b, Show b, Eq b) => MkOptDescr (a -> b) (b -> a -> a) a

    Cabal Distribution.Simple.Command

    create a Choice option out of an enumeration type. As long flags, the Show output is used. As short flags, the first character which does not conflict with a previous one is used.

  5. ghcOptNumJobs :: GhcOptions -> Flag ParStrat

    Cabal Distribution.Simple.Program.GHC

    Run N jobs simultaneously (if possible).

  6. buildNumJobs :: BuildFlags -> Flag (Maybe Int)

    Cabal Distribution.Simple.Setup

    No documentation available.

  7. globalNumericVersion :: GlobalFlags -> Flag Bool

    Cabal Distribution.Simple.Setup

    No documentation available.

  8. dateToSnapshotNumber :: UTCTime -> Int

    Cabal Distribution.Simple.SrcDist

    Given a date produce a corresponding integer representation. For example given a date 18032008 produce the number 20080318.

  9. OptionEnum :: [String] -> OptionType

    Cabal Distribution.TestSuite

    No documentation available.

  10. OptionNumber :: Bool -> (Maybe String, Maybe String) -> OptionType

    Cabal Distribution.TestSuite

    No documentation available.

Page 166 of many | Previous | Next