ganeti
Safe HaskellSafe

Ganeti.Compat

Description

Compatibility helper module.

This module holds definitions that help with supporting multiple library versions or transitions between versions.

Synopsis

Documentation

filePath' :: Event -> FilePath Source #

Wrappers converting ByteString filepaths to Strings and vice versa

hinotify 0.3.10 switched to using RawFilePaths instead of FilePaths, the former being Data.ByteString and the latter String.

maybeFilePath' :: Event -> Maybe FilePath Source #

toInotifyPath :: FilePath -> RawFilePath Source #

type Pid = CPid Source #

Process 1.6.3. introduced the getPid function, for older versions provide an implemention here (https:/github.comhaskellprocesspull/109)

getPid' :: ProcessHandle -> IO (Maybe Pid) Source #