Skip to content

Commit

Permalink
Ensure 64-bit integers don't get trimmed on 32bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Nov 2, 2024
1 parent 30907b6 commit 458b664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nixfmt/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import Control.Monad.State.Strict (StateT)
import Data.Bifunctor (first)
import Data.Foldable (toList)
import Data.Function (on)
import Data.Int (Int64)
import Data.List.NonEmpty as NonEmpty
import Data.Maybe (maybeToList)
import Data.Text (Text, pack)
Expand Down Expand Up @@ -487,7 +488,7 @@ instance (LanguageElement a) => LanguageElement (NonEmpty a) where
mapAllTokens f = NonEmpty.map (mapAllTokens f)

data Token
= Integer Int
= Integer Int64
| Float Text
| Identifier Text
| EnvPath Text
Expand Down

0 comments on commit 458b664

Please sign in to comment.