ganeti

Safe HaskellSafe

Ganeti.Compat

Contents

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 #

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

Orphan instances

MonadFail Result #

MonadFail.Fail instance definitions for JSON results

Required as of GHC 8.6 because MonadFailDesugaring is on by default: https://gitlab.haskell.org/ghc/ghc/wikis/migration/8.6. Added upstream in version 0.10.

Instance details

Methods

fail :: String -> Result a