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 8e0c468
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 @@ -55,6 +55,7 @@ import Data.Void (Void)
import Text.Megaparsec (Pos)
import qualified Text.Megaparsec as MP (ParseErrorBundle, Parsec, pos1)
import Prelude hiding (String)
import Data.Int (Int64)

-- | A @megaparsec@ @ParsecT@ specified for use with @nixfmt@.
type Parser = StateT Trivia (MP.Parsec Void Text)
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 8e0c468

Please sign in to comment.