summaryrefslogtreecommitdiff
path: root/Presence
diff options
context:
space:
mode:
Diffstat (limited to 'Presence')
-rw-r--r--Presence/UTmp.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Presence/UTmp.hs b/Presence/UTmp.hs
index aa2a7733..fcfe529a 100644
--- a/Presence/UTmp.hs
+++ b/Presence/UTmp.hs
@@ -17,6 +17,7 @@ import qualified Data.ByteString.Lazy.Char8 as L
17import Data.BitSyntax 17import Data.BitSyntax
18import Data.Functor.Identity 18import Data.Functor.Identity
19import Data.Maybe 19import Data.Maybe
20import Data.String
20import System.Posix.Process 21import System.Posix.Process
21import System.Posix.Signals 22import System.Posix.Signals
22import System.Posix.Types 23import System.Posix.Types
@@ -34,8 +35,8 @@ import qualified Data.Text.Encoding as Text
34import SockAddr () 35import SockAddr ()
35 36
36 37
37utmp_file :: String 38utmp_file :: IsString s => s
38utmp_file = Paths.utmp -- "/var/run/utmp" 39utmp_file = fromString $ Paths.utmp -- "/var/run/utmp"
39 40
40utmp_bs :: IO C.ByteString 41utmp_bs :: IO C.ByteString
41utmp_bs = S.readFile utmp_file 42utmp_bs = S.readFile utmp_file