Hoogle Search
Within LTS Haskell 24.57 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
CouldBeAnyOfF (e :: [k]) (xs :: [k]) = All Map CouldBeF e xsoops Control.Monad.Oops As with CouldBeAnyOf, we can also constrain a variant to represent several possible types, as we might with several CouldBeF constraints, using one type-level list.
type
CouldBeAnyOf (e :: [Type]) (xs :: [Type]) = All Map CouldBe e xsoops Data.Variant Listing larger variants' constraints might amplify the noise of functions' signatures. The CouldBeAnyOfF constraint lets us specify several types a variant may contain in a single type-level list, as opposed to several independent constraints. So, we could replace, f :: (e CouldBe Int, e CouldBe Bool, e CouldBe Char) => VariantF IO e with the equivalent constraint, f :: e CouldBeAnyOf '[Int, Bool, Char] => VariantF IO e As CouldBeAnyOf is just short-hand, we can use throw just like when we have CouldBe constraints:
>>> :set -XTypeOperators >>> :{ f :: e `CouldBeAnyOf` '[Int, Bool, Char] => Variant e f = throw 'c' :}... and eliminate constraints in just the same way:>>> :{ g :: e `CouldBeAnyOf` '[Int, Bool] => Either (Variant e) Char g = catch @Char f :}type
CouldBeAnyOfF (e :: [k]) (xs :: [k]) = All Map CouldBeF e xsoops Data.Variant As with CouldBeAnyOf, we can also constrain a variant to represent several possible types, as we might with several CouldBeF constraints, using one type-level list.
arrangeInsertMany :: Table columns a -> NonEmpty columns -> Maybe OnConflict -> SqlInsertopaleye Opaleye.Internal.Manipulation No documentation available.
-
opaleye Opaleye.Internal.Manipulation No documentation available.
-
opaleye Opaleye.Internal.Manipulation No documentation available.
arrangeInsertManySql :: Table columnsW columnsR -> NonEmpty columnsW -> Maybe OnConflict -> Stringopaleye Opaleye.Internal.Manipulation No documentation available.
-
opaleye Opaleye.Internal.Manipulation No documentation available.
makeWndwAny :: forall a (n :: Nullability) b . WndwOp -> WindowFunction a (Field_ n b)opaleye Opaleye.Internal.Window No documentation available.
ifThenElseMany :: Default IfPP fields fields => Field SqlBool -> fields -> fields -> fieldsopaleye Opaleye.Operators Polymorphic if/then/else.