mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-27 18:21:52 -07:00
'io' and 'fi' are defined outside of Prompt
This commit is contained in:
@@ -63,12 +63,13 @@ module XMonad.Prompt
|
|||||||
|
|
||||||
import Prelude hiding (catch)
|
import Prelude hiding (catch)
|
||||||
|
|
||||||
import XMonad hiding (config, io, numlockMask, cleanMask)
|
import XMonad hiding (config, numlockMask, cleanMask)
|
||||||
import qualified XMonad as X (numlockMask,config)
|
import qualified XMonad as X (numlockMask,config)
|
||||||
import qualified XMonad.StackSet as W
|
import qualified XMonad.StackSet as W
|
||||||
import XMonad.Util.Font
|
import XMonad.Util.Font
|
||||||
import XMonad.Util.Types
|
import XMonad.Util.Types
|
||||||
import XMonad.Util.XSelection (getSelection)
|
import XMonad.Util.XSelection (getSelection)
|
||||||
|
import XMonad.Util.XUtils (fi)
|
||||||
|
|
||||||
import Control.Arrow ((&&&),first)
|
import Control.Arrow ((&&&),first)
|
||||||
import Control.Concurrent (threadDelay)
|
import Control.Concurrent (threadDelay)
|
||||||
@@ -826,14 +827,6 @@ getNextCompletion c l = l !! idx
|
|||||||
Just i -> if i >= length l - 1 then 0 else i + 1
|
Just i -> if i >= length l - 1 then 0 else i + 1
|
||||||
Nothing -> 0
|
Nothing -> 0
|
||||||
|
|
||||||
-- Lift an IO action into the XP
|
|
||||||
io :: IO a -> XP a
|
|
||||||
io = liftIO
|
|
||||||
|
|
||||||
-- Shorthand for fromIntegral
|
|
||||||
fi :: (Num b, Integral a) => a -> b
|
|
||||||
fi = fromIntegral
|
|
||||||
|
|
||||||
-- | Given a maximum length, splits a list into sublists
|
-- | Given a maximum length, splits a list into sublists
|
||||||
splitInSubListsAt :: Int -> [a] -> [[a]]
|
splitInSubListsAt :: Int -> [a] -> [[a]]
|
||||||
splitInSubListsAt _ [] = []
|
splitInSubListsAt _ [] = []
|
||||||
|
Reference in New Issue
Block a user