From 458b66451624b2fb81658c5e7194cd280d4492c2 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 2 Nov 2024 08:42:44 +0100 Subject: [PATCH] Ensure 64-bit integers don't get trimmed on 32bit platforms --- src/Nixfmt/Types.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nixfmt/Types.hs b/src/Nixfmt/Types.hs index 93dd1d0..43d9073 100644 --- a/src/Nixfmt/Types.hs +++ b/src/Nixfmt/Types.hs @@ -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) @@ -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