Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromEnum :: (Enum a, Bits w) => a -> MaskedValue w aenumset Data.FlagSet fromEnum should return an integer that represents the position of the a value in the list of all enumeration items. In contrast to that, fromEnum must return the according bit pattern.
SqlNumeric :: Word32 -> Word32 -> SqlTypeesqueleto Database.Esqueleto No documentation available.
castNum :: (Num a, Num b) => SqlExpr (Value a) -> SqlExpr (Value b)esqueleto Database.Esqueleto Allow a number of one type to be used as one of another type via an implicit cast. An explicit cast is not made, this function changes only the types on the Haskell side. Caveat: Trying to use castNum from Double to Int will not result in an integer, the original fractional number will still be used! Use round_, ceiling_ or floor_ instead. Safety: This operation is mostly safe due to the Num constraint between the types and the fact that RDBMSs usually allow numbers of different types to be used interchangeably. However, there may still be issues with the query not being accepted by the RDBMS or persistent not being able to parse it.
castNumM :: (Num a, Num b) => SqlExpr (Value (Maybe a)) -> SqlExpr (Value (Maybe b))esqueleto Database.Esqueleto Same as castNum, but for nullable values.
SqlNumeric :: Word32 -> Word32 -> SqlTypeesqueleto Database.Esqueleto.Experimental No documentation available.
castNum :: (Num a, Num b) => SqlExpr (Value a) -> SqlExpr (Value b)esqueleto Database.Esqueleto.Experimental Allow a number of one type to be used as one of another type via an implicit cast. An explicit cast is not made, this function changes only the types on the Haskell side. Caveat: Trying to use castNum from Double to Int will not result in an integer, the original fractional number will still be used! Use round_, ceiling_ or floor_ instead. Safety: This operation is mostly safe due to the Num constraint between the types and the fact that RDBMSs usually allow numbers of different types to be used interchangeably. However, there may still be issues with the query not being accepted by the RDBMS or persistent not being able to parse it.
castNumM :: (Num a, Num b) => SqlExpr (Value (Maybe a)) -> SqlExpr (Value (Maybe b))esqueleto Database.Esqueleto.Experimental Same as castNum, but for nullable values.
castNum :: (Num a, Num b) => SqlExpr (Value a) -> SqlExpr (Value b)esqueleto Database.Esqueleto.Internal.Internal Allow a number of one type to be used as one of another type via an implicit cast. An explicit cast is not made, this function changes only the types on the Haskell side. Caveat: Trying to use castNum from Double to Int will not result in an integer, the original fractional number will still be used! Use round_, ceiling_ or floor_ instead. Safety: This operation is mostly safe due to the Num constraint between the types and the fact that RDBMSs usually allow numbers of different types to be used interchangeably. However, there may still be issues with the query not being accepted by the RDBMS or persistent not being able to parse it.
castNumM :: (Num a, Num b) => SqlExpr (Value (Maybe a)) -> SqlExpr (Value (Maybe b))esqueleto Database.Esqueleto.Internal.Internal Same as castNum, but for nullable values.
SqlNumeric :: Word32 -> Word32 -> SqlTypeesqueleto Database.Esqueleto.Legacy No documentation available.