Skip to content

Commit

Permalink
Merge pull request #234 from MangoIV/mangoiv/perf
Browse files Browse the repository at this point in the history
[fix] remove space leaks in (,) by using strict state
  • Loading branch information
infinisil committed Aug 16, 2024
2 parents 2d79e0f + f2d0b17 commit 14be7e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Nixfmt/Lexer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Nixfmt.Lexer (lexeme, pushTrivia, takeTrivia, whole) where

import Control.Monad.State (MonadState, evalStateT, get, modify, put)
import Control.Monad.State.Strict (MonadState, evalStateT, get, modify, put)
import Data.Char (isSpace)
import Data.List (dropWhileEnd)
import Data.Maybe (fromMaybe)
Expand Down
2 changes: 1 addition & 1 deletion src/Nixfmt/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module Nixfmt.Types (
walkSubprograms,
) where

import Control.Monad.State (StateT)
import Control.Monad.State.Strict (StateT)
import Data.Bifunctor (first)
import Data.Foldable (toList)
import Data.Function (on)
Expand Down

0 comments on commit 14be7e6

Please sign in to comment.