module Numeric.Convert.Real
( Internal.FromReal (..),
Internal.ToReal (..),
ℝ,
Fromℝ,
fromℝ,
Toℝ,
toℝ,
AsReal,
Asℝ,
)
where
import GHC.Stack (HasCallStack)
import Numeric.Convert.Internal qualified as Internal
type ℝ = Double
type Fromℝ = Internal.FromReal
fromℝ :: (Fromℝ a, HasCallStack) => ℝ -> a
fromℝ :: forall a. (Fromℝ a, HasCallStack) => ℝ -> a
fromℝ = ℝ -> a
forall a. (Fromℝ a, HasCallStack) => ℝ -> a
Internal.fromR
type Toℝ = Internal.ToReal
toℝ :: (HasCallStack, Toℝ a) => a -> ℝ
toℝ :: forall a. (HasCallStack, Toℝ a) => a -> ℝ
toℝ = a -> ℝ
forall a. (ToReal a, HasCallStack) => a -> ℝ
Internal.toR
type AsReal a = (Internal.FromReal a, Internal.ToReal a)
type Asℝ a = (Fromℝ a, Toℝ a)