hpio-0.9.0.3: Monads for GPIO in Haskell

Copyright(c) 2017 Quixoftic LLC
LicenseBSD3
MaintainerDrew Hess <dhess-src@quixoftic.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

System.GPIO.Linux.Sysfs.Mock.Internal

Contents

Description

Types and functions to emulate a (pure) rudimentary Posix-style filesystem.

This module was written for internal use only. Its interface may change at any time. Documentation in this module is sparse, by design.

N.B.: This mock filesystem implementation was written with the intention of doing only just enough to emulate the operations needed by the MonadSysfs type class. Though it may be possible to use this implementation for other purposes, it has neither been designed nor tested for that. Use at your own risk and please do not submit requests for addtional functionality.

Synopsis

Mock filesystem types

data File Source #

Constructors

File 

Fields

Instances

Eq File Source # 

Methods

(==) :: File -> File -> Bool #

(/=) :: File -> File -> Bool #

Show File Source # 

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

data DirNode Source #

Constructors

DirNode 

Fields

data MockFSZipper Source #

An opaque type representing the current state of the mock sysfs filesystem. Because the constructor is not exported via the public interface, you cannot create these directly, but you can manipulate them using the exposed mock sysfs operations and then pass those MockFSZippers around.

Constructors

MockFSZipper 

Mock filesystem operations