{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
module SDL3.Sys.Bindgen.Version (
SDL3.Sys.Bindgen.Version.sDL_MAJOR_VERSION,
SDL3.Sys.Bindgen.Version.sDL_MINOR_VERSION,
SDL3.Sys.Bindgen.Version.sDL_MICRO_VERSION,
SDL3.Sys.Bindgen.Version.sDL_VERSIONNUM,
SDL3.Sys.Bindgen.Version.sDL_VERSIONNUM_MAJOR,
SDL3.Sys.Bindgen.Version.sDL_VERSIONNUM_MINOR,
SDL3.Sys.Bindgen.Version.sDL_VERSIONNUM_MICRO,
SDL3.Sys.Bindgen.Version.sDL_VERSION,
SDL3.Sys.Bindgen.Version.sDL_VERSION_ATLEAST,
)
where
import C.Expr.HostPlatform qualified
import HsBindgen.Runtime.Support qualified as BG
sDL_MAJOR_VERSION :: BG.CInt
sDL_MAJOR_VERSION :: CInt
sDL_MAJOR_VERSION = (CInt
3 :: BG.CInt)
sDL_MINOR_VERSION :: BG.CInt
sDL_MINOR_VERSION :: CInt
sDL_MINOR_VERSION = (CInt
4 :: BG.CInt)
sDL_MICRO_VERSION :: BG.CInt
sDL_MICRO_VERSION :: CInt
sDL_MICRO_VERSION = (CInt
18 :: BG.CInt)
sDL_VERSIONNUM
:: forall a0 b1 c2
. ( C.Expr.HostPlatform.Add
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
=> ( C.Expr.HostPlatform.Add
( C.Expr.HostPlatform.AddRes
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
c2
)
=> (C.Expr.HostPlatform.Mult b1 BG.CInt)
=> (C.Expr.HostPlatform.Mult a0 BG.CInt)
=> a0
-> b1
-> c2
-> C.Expr.HostPlatform.AddRes
( C.Expr.HostPlatform.AddRes
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
c2
sDL_VERSIONNUM :: forall a0 b1 c2.
(Add (MultRes a0 CInt) (MultRes b1 CInt),
Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Mult b1 CInt,
Mult a0 CInt) =>
a0
-> b1
-> c2
-> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
sDL_VERSIONNUM =
\a0
major0 ->
\b1
minor1 ->
\c2
patch2 ->
AddRes (MultRes a0 CInt) (MultRes b1 CInt)
-> c2 -> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
forall a b. Add a b => a -> b -> AddRes a b
(C.Expr.HostPlatform.+)
( MultRes a0 CInt
-> MultRes b1 CInt -> AddRes (MultRes a0 CInt) (MultRes b1 CInt)
forall a b. Add a b => a -> b -> AddRes a b
(C.Expr.HostPlatform.+)
(a0 -> CInt -> MultRes a0 CInt
forall a b. Mult a b => a -> b -> MultRes a b
(C.Expr.HostPlatform.*) a0
major0 (CInt
1000000 :: BG.CInt))
(b1 -> CInt -> MultRes b1 CInt
forall a b. Mult a b => a -> b -> MultRes a b
(C.Expr.HostPlatform.*) b1
minor1 (CInt
1000 :: BG.CInt))
)
c2
patch2
sDL_VERSIONNUM_MAJOR
:: forall a0. (C.Expr.HostPlatform.Div a0 BG.CInt) => a0 -> C.Expr.HostPlatform.DivRes a0 BG.CInt
sDL_VERSIONNUM_MAJOR :: forall a0. Div a0 CInt => a0 -> DivRes a0 CInt
sDL_VERSIONNUM_MAJOR =
\a0
version0 ->
a0 -> CInt -> DivRes a0 CInt
forall a b. Div a b => a -> b -> DivRes a b
(C.Expr.HostPlatform./) a0
version0 (CInt
1000000 :: BG.CInt)
sDL_VERSIONNUM_MINOR
:: forall a0
. (C.Expr.HostPlatform.Div a0 BG.CInt)
=> (C.Expr.HostPlatform.Rem (C.Expr.HostPlatform.DivRes a0 BG.CInt) BG.CInt)
=> a0 -> C.Expr.HostPlatform.RemRes (C.Expr.HostPlatform.DivRes a0 BG.CInt) BG.CInt
sDL_VERSIONNUM_MINOR :: forall a0.
(Div a0 CInt, Rem (DivRes a0 CInt) CInt) =>
a0 -> RemRes (DivRes a0 CInt) CInt
sDL_VERSIONNUM_MINOR =
\a0
version0 ->
DivRes a0 CInt -> CInt -> RemRes (DivRes a0 CInt) CInt
forall a b. Rem a b => a -> b -> RemRes a b
(C.Expr.HostPlatform.%) (a0 -> CInt -> DivRes a0 CInt
forall a b. Div a b => a -> b -> DivRes a b
(C.Expr.HostPlatform./) a0
version0 (CInt
1000 :: BG.CInt)) (CInt
1000 :: BG.CInt)
sDL_VERSIONNUM_MICRO
:: forall a0. (C.Expr.HostPlatform.Rem a0 BG.CInt) => a0 -> C.Expr.HostPlatform.RemRes a0 BG.CInt
sDL_VERSIONNUM_MICRO :: forall a0. Rem a0 CInt => a0 -> RemRes a0 CInt
sDL_VERSIONNUM_MICRO =
\a0
version0 ->
a0 -> CInt -> RemRes a0 CInt
forall a b. Rem a b => a -> b -> RemRes a b
(C.Expr.HostPlatform.%) a0
version0 (CInt
1000 :: BG.CInt)
sDL_VERSION :: BG.CInt
sDL_VERSION :: CInt
sDL_VERSION =
CInt
-> CInt
-> CInt
-> AddRes (AddRes (MultRes CInt CInt) (MultRes CInt CInt)) CInt
forall a0 b1 c2.
(Add (MultRes a0 CInt) (MultRes b1 CInt),
Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Mult b1 CInt,
Mult a0 CInt) =>
a0
-> b1
-> c2
-> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
sDL_VERSIONNUM CInt
sDL_MAJOR_VERSION CInt
sDL_MINOR_VERSION CInt
sDL_MICRO_VERSION
sDL_VERSION_ATLEAST
:: forall a0 b1 c2
. ( C.Expr.HostPlatform.RelOrd
BG.CInt
( C.Expr.HostPlatform.AddRes
( C.Expr.HostPlatform.AddRes
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
c2
)
)
=> ( C.Expr.HostPlatform.Add
( C.Expr.HostPlatform.AddRes
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
c2
)
=> ( C.Expr.HostPlatform.Add
(C.Expr.HostPlatform.MultRes a0 BG.CInt)
(C.Expr.HostPlatform.MultRes b1 BG.CInt)
)
=> (C.Expr.HostPlatform.Mult a0 BG.CInt)
=> (C.Expr.HostPlatform.Mult b1 BG.CInt)
=> a0 -> b1 -> c2 -> BG.CInt
sDL_VERSION_ATLEAST :: forall a0 b1 c2.
(RelOrd
CInt (AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2),
Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2,
Add (MultRes a0 CInt) (MultRes b1 CInt), Mult a0 CInt,
Mult b1 CInt) =>
a0 -> b1 -> c2 -> CInt
sDL_VERSION_ATLEAST =
\a0
x0 ->
\b1
y1 ->
\c2
z2 ->
CInt
-> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2 -> CInt
forall a b. RelOrd a b => a -> b -> CInt
(C.Expr.HostPlatform.>=) CInt
sDL_VERSION (a0
-> b1
-> c2
-> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
forall a0 b1 c2.
(Add (MultRes a0 CInt) (MultRes b1 CInt),
Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Mult b1 CInt,
Mult a0 CInt) =>
a0
-> b1
-> c2
-> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
sDL_VERSIONNUM a0
x0 b1
y1 c2
z2)