sandwatch-0.1.1.0: record historical command runtimes for later prediction
Safe HaskellSafe-Inferred
LanguageHaskell2010

MyLib

Synopsis

Documentation

data Run Source #

Constructors

Run 

Fields

Instances

Instances details
FromJSON Run Source # 
Instance details

Defined in MyLib

ToJSON Run Source # 
Instance details

Defined in MyLib

Generic Run Source # 
Instance details

Defined in MyLib

Associated Types

type Rep Run :: Type -> Type #

Methods

from :: Run -> Rep Run x #

to :: Rep Run x -> Run #

Show Run Source # 
Instance details

Defined in MyLib

Methods

showsPrec :: Int -> Run -> ShowS #

show :: Run -> String #

showList :: [Run] -> ShowS #

Eq Run Source # 
Instance details

Defined in MyLib

Methods

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

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

Ord Run Source # 
Instance details

Defined in MyLib

Methods

compare :: Run -> Run -> Ordering #

(<) :: Run -> Run -> Bool #

(<=) :: Run -> Run -> Bool #

(>) :: Run -> Run -> Bool #

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

max :: Run -> Run -> Run #

min :: Run -> Run -> Run #

type Rep Run Source # 
Instance details

Defined in MyLib

data Runs Source #

Constructors

Runs 

Fields

Instances

Instances details
FromJSON Runs Source # 
Instance details

Defined in MyLib

ToJSON Runs Source # 
Instance details

Defined in MyLib

Generic Runs Source # 
Instance details

Defined in MyLib

Associated Types

type Rep Runs :: Type -> Type #

Methods

from :: Runs -> Rep Runs x #

to :: Rep Runs x -> Runs #

Show Runs Source # 
Instance details

Defined in MyLib

Methods

showsPrec :: Int -> Runs -> ShowS #

show :: Runs -> String #

showList :: [Runs] -> ShowS #

Eq Runs Source # 
Instance details

Defined in MyLib

Methods

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

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

Ord Runs Source # 
Instance details

Defined in MyLib

Methods

compare :: Runs -> Runs -> Ordering #

(<) :: Runs -> Runs -> Bool #

(<=) :: Runs -> Runs -> Bool #

(>) :: Runs -> Runs -> Bool #

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

max :: Runs -> Runs -> Runs #

min :: Runs -> Runs -> Runs #

type Rep Runs Source # 
Instance details

Defined in MyLib

type Rep Runs = D1 ('MetaData "Runs" "MyLib" "sandwatch-0.1.1.0-3DxG1PtpsDC4OgXL4EJuhK" 'False) (C1 ('MetaCons "Runs" 'PrefixI 'True) (S1 ('MetaSel ('Just "rs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Run])))

guessTime :: Int -> Runs -> Run -> Double Source #

expects historical runs, number of words to match, a Run that has cmdline and cwd populated