Skip to content

Commit

Permalink
Merge pull request yi-editor#1134 from 0rphee/master
Browse files Browse the repository at this point in the history
fix removed reexported imports from mtl and change stackage lts to 21.12
  • Loading branch information
mfourne authored Sep 23, 2023
2 parents 9f97f3d + 6bd1426 commit 671c098
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
5 changes: 4 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ packages:
- yi-language
- yi-snippet
- yi
resolver: lts-11.12
resolver: lts-21.12
build:
library-profiling: false
executable-profiling: false

extra-deps:
- Hclip-3.0.0.4

# needed for macOS
# flags:
# gtk:
Expand Down
19 changes: 19 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: Hclip-3.0.0.4@sha256:df341c936594465df25c3b9f93f6ebe3110a36d64a51dbbd1dbd557394bbdba4,1648
pantry-tree:
sha256: bc09b0acdf0ffce64e16a53ffc18d76dc05d4282433cae723402d1b8ecc01301
size: 205
original:
hackage: Hclip-3.0.0.4
snapshots:
- completed:
sha256: 9313df78f49519315342f4c51ffc5da12659d3735f8ac3c54a1fb98ff874474e
size: 640036
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/12.yaml
original: lts-21.12
8 changes: 4 additions & 4 deletions yi-core/src/Yi/Dired.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ import Control.Applicative ((<|>))
import Control.Category ((>>>))
import Control.Exc (orException, printingException)
import Lens.Micro.Platform (makeLenses, use, (%~), (&), (.=), (.~), (^.))
import Control.Monad.Reader (asks, foldM, unless, void, when)
import Control.Monad (foldM, unless, void, when)
import Control.Monad.Reader (asks)
import qualified Data.Attoparsec.Text as P
import Data.Binary (Binary)
import Data.Char (toLower)
Expand Down Expand Up @@ -90,11 +91,10 @@ import System.PosixCompat.Files (FileStatus, fileExist, fileGroup,
unionFileModes)
import System.PosixCompat.Types (FileMode, GroupID, UserID)
#ifndef mingw32_HOST_OS
import System.Posix.User (GroupEntry, GroupEntry (..),
UserEntry (..), getAllGroupEntries,
import System.Posix.User (GroupEntry(..), UserEntry(..),getAllGroupEntries,
getAllUserEntries,
getGroupEntryForID,
getUserEntryForID, groupID, userID)
getUserEntryForID, groupID, userID, userName, groupName)
#endif
import Text.Printf (printf)
import Yi.Buffer
Expand Down
5 changes: 2 additions & 3 deletions yi-core/src/Yi/Editor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ import Prelude hiding (all, concatMap, foldl, f
import Lens.Micro.Platform (Lens', lens, mapped,
use, view, (%=), (%~),
(&), (.~), (^.))
import Control.Monad (forM_, liftM)
import Control.Monad.Reader (MonadReader (ask), asks,
unless, when)
import Control.Monad (forM_, liftM, unless, when)
import Control.Monad.Reader (MonadReader (ask), asks)
import Control.Monad.State (gets, modify)
import Data.Binary (Binary, get, put)
import Data.Default (Default, def)
Expand Down
3 changes: 2 additions & 1 deletion yi-core/src/Yi/Interact.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ import Control.Applicative (Alternative ((<|>), empty))
import Control.Arrow (first)
import Lens.Micro.Platform (_1, _2, view)
import qualified Control.Monad.Fail as Fail
import Control.Monad.State (MonadPlus (..), MonadTrans (lift), StateT)
import Control.Monad.State (MonadTrans (lift), StateT)
import Control.Monad (MonadPlus(..))
import Data.Function (on)
import Data.List (groupBy)
import qualified Data.Text as T (Text, append, pack)
Expand Down
3 changes: 2 additions & 1 deletion yi-core/src/Yi/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ module Yi.Monad (
with,
) where

import Control.Monad (when)
import Control.Monad.Base (MonadBase, liftBase)
import Control.Monad.Reader (MonadReader, ask)
import Control.Monad.State (MonadState, get, gets, put, when)
import Control.Monad.State (MonadState, get, gets, put)
import Lens.Micro.Platform (Getting, ASetter, (.=), use)

-- | Combination of the Control.Monad.State 'modify' and 'gets'
Expand Down

0 comments on commit 671c098

Please sign in to comment.