diff options
author | joe <joe@jerkface.net> | 2018-06-22 07:20:24 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-22 07:22:33 -0400 |
commit | 40a8f0b6eb66bae93f8708dd84aaec57f7505c05 (patch) | |
tree | e328f56dd88433a00814452e60ead88acfe13f3b /Presence | |
parent | 6bbc15735f6e28740c0e05fc8219fd83a5a464a4 (diff) |
Forward port to nightly-2018-06-22.
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 |