remove Utility.Mounts et al; moved to mountpoints package
This commit is contained in:
parent
7aab9a0b23
commit
46fe686ba0
6 changed files with 23 additions and 286 deletions
21
Utility/Mounts.hs
Normal file
21
Utility/Mounts.hs
Normal file
|
@ -0,0 +1,21 @@
|
|||
{- portability shim for System.MountPoints
|
||||
-
|
||||
- Copyright 2016 Joey Hess <id@joeyh.name>
|
||||
-
|
||||
- License: BSD-2-clause
|
||||
-}
|
||||
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# OPTIONS_GHC -fno-warn-tabs #-}
|
||||
|
||||
module Utility.Mounts (getMounts, Mntent(..)) where
|
||||
|
||||
import qualified System.MountPoints
|
||||
import System.MountPoints (Mntent(..))
|
||||
|
||||
getMounts :: IO [Mntent]
|
||||
#ifndef __ANDROID__
|
||||
getMounts = System.MountPoints.getMounts
|
||||
#else
|
||||
getMounts = System.MountPoints.getProcMounts
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue