Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ormolu.Fixity.Internal
Synopsis
- data FixityDirection
- data FixityInfo = FixityInfo {
- fiDirection :: Maybe FixityDirection
- fiMinPrecedence :: Int
- fiMaxPrecedence :: Int
- defaultFixityInfo :: FixityInfo
- colonFixityInfo :: FixityInfo
- data HackageInfo = HackageInfo (Map String FixityMap) (Map String Int)
- type FixityMap = Map String FixityInfo
- newtype LazyFixityMap = LazyFixityMap [FixityMap]
- lookupFixity :: String -> LazyFixityMap -> Maybe FixityInfo
Documentation
data FixityDirection Source #
Fixity direction.
Instances
data FixityInfo Source #
Fixity information about an infix operator that takes the uncertainty that can arise from conflicting definitions into account.
Constructors
FixityInfo | |
Fields
|
Instances
defaultFixityInfo :: FixityInfo Source #
The lowest level of information we can have about an operator.
colonFixityInfo :: FixityInfo Source #
Fixity info of the built-in colon data constructor.
data HackageInfo Source #
The map of operators declared by each package and the popularity of each package, if available.
Constructors
HackageInfo | |
Fields
|
Instances
FromJSON HackageInfo Source # | |
Defined in Ormolu.Fixity.Internal | |
ToJSON HackageInfo Source # | |
Defined in Ormolu.Fixity.Internal Methods toJSON :: HackageInfo -> Value toEncoding :: HackageInfo -> Encoding toJSONList :: [HackageInfo] -> Value toEncodingList :: [HackageInfo] -> Encoding | |
Lift HackageInfo Source # | |
Defined in Ormolu.Fixity.Internal Methods lift :: Quote m => HackageInfo -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => HackageInfo -> Code m HackageInfo |
type FixityMap = Map String FixityInfo Source #
Map from the operator name to its FixityInfo
.
newtype LazyFixityMap Source #
Constructors
LazyFixityMap [FixityMap] |
Instances
Show LazyFixityMap Source # | |
Defined in Ormolu.Fixity.Internal Methods showsPrec :: Int -> LazyFixityMap -> ShowS show :: LazyFixityMap -> String showList :: [LazyFixityMap] -> ShowS |
lookupFixity :: String -> LazyFixityMap -> Maybe FixityInfo Source #
Lookup a FixityInfo
of an operator. This might have drastically
different performance depending on whether this is an "unusal"
operator.