diff options
Diffstat (limited to 'Presence')
-rw-r--r-- | Presence/UTmp.hs | 5 |
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 | |||
17 | import Data.BitSyntax | 17 | import Data.BitSyntax |
18 | import Data.Functor.Identity | 18 | import Data.Functor.Identity |
19 | import Data.Maybe | 19 | import Data.Maybe |
20 | import Data.String | ||
20 | import System.Posix.Process | 21 | import System.Posix.Process |
21 | import System.Posix.Signals | 22 | import System.Posix.Signals |
22 | import System.Posix.Types | 23 | import System.Posix.Types |
@@ -34,8 +35,8 @@ import qualified Data.Text.Encoding as Text | |||
34 | import SockAddr () | 35 | import SockAddr () |
35 | 36 | ||
36 | 37 | ||
37 | utmp_file :: String | 38 | utmp_file :: IsString s => s |
38 | utmp_file = Paths.utmp -- "/var/run/utmp" | 39 | utmp_file = fromString $ Paths.utmp -- "/var/run/utmp" |
39 | 40 | ||
40 | utmp_bs :: IO C.ByteString | 41 | utmp_bs :: IO C.ByteString |
41 | utmp_bs = S.readFile utmp_file | 42 | utmp_bs = S.readFile utmp_file |