Skip to content

Commit

Permalink
Merge pull request #262 from NixOS/int64
Browse files Browse the repository at this point in the history
Ensure 64-bit integers don't get trimmed on 32bit platforms
  • Loading branch information
infinisil authored Nov 7, 2024
2 parents 30907b6 + 458b664 commit 92c9d8c
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 92c9d8c

Please sign in to comment.