Skip to content

float crashes with no-double-conversion #85

Open

Description

@spencerjanssen

This program crashes when built with +no-double-conversion:

import Formatting
import Data.Text (unpack)

main = putStrLn $ unpack $ sformat float (-1.0 :: Double)

Error message:

Numeric.showInt: can't show negative numbers

Works fine with -no-double-conversion.

Activity

  1. added 3 commits that reference this issue on Mar 5, 2024
    ba8f7df
    0dd9dae
    c351d74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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