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.
castNum :: (Num a, Num b) => SqlExpr (Value a) -> SqlExpr (Value b)esqueleto Database.Esqueleto.Legacy 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.Legacy Same as castNum, but for nullable values.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.
enumFromThenClassOpKey :: Uniqueghc-lib-parser GHC.Builtin.Names No documentation available.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.
enumFromThenToClassOpKey :: Uniqueghc-lib-parser GHC.Builtin.Names No documentation available.
-
ghc-lib-parser GHC.Builtin.Names No documentation available.