Skip to content

Floating point exception when using Doubles #5

@Gabriella439

Description

@Gabriella439

I get a Floating point exception panic whenever I pass a Double as a parameter to format:

Prelude> import Data.Text.Format as T -- This wires in text-format-0.3.0.8
Prelude T> format "{}" (Only (1.0 :: Double))
"Floating point exception

This causes the ghci session or program to crash unrecoverably.

This also occurs even if the parameter is never used, such as in:

Prelude T> format "" (Only (1.0 :: Double))
"Floating point exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions