Safe Haskell | Safe-Infered |
---|
Hoogle.Score.All
- module Hoogle.Score.Scoring
- data Score
- data TypeCost
- data TextMatch
- = MatchExact
- | MatchPrefix
- | MatchSubstr
- textScore :: TextMatch -> Score
- typeScore :: [TypeCost] -> Score
- scoreCosts :: Score -> [TypeCost]
- cost :: TypeCost -> Int
Documentation
module Hoogle.Score.Scoring
data Score
A score, representing how close a match is. Lower scores are better.
data TypeCost
data TextMatch
Constructors
MatchExact | |
MatchPrefix | |
MatchSubstr |
scoreCosts :: Score -> [TypeCost]