mirror of
https://github.com/swarm-game/swarm.git
synced 2024-08-17 18:41:02 +03:00
workspace spelling dictionary (#1587)
The spellchecker in VS code can be quite noisy, given all of the esoteric terminology and shorthand variable names in code. However, it is also super helpful for catching typos, if you can wade through the noise. Adding a project-specific dictionary will significantly cut down on that noise.
This commit is contained in:
parent
05613dfba4
commit
17b327fc1d
117
.vscode/settings.json
vendored
117
.vscode/settings.json
vendored
@ -10,5 +10,120 @@
|
||||
"data/schema/recipes.json": [
|
||||
"data/recipes.yaml"
|
||||
],
|
||||
}
|
||||
},
|
||||
"cSpell.words": [
|
||||
"accum",
|
||||
"antiquotation",
|
||||
"antiquoted",
|
||||
"antiquoting",
|
||||
"assocs",
|
||||
"autoplay",
|
||||
"Bifunctor",
|
||||
"bimap",
|
||||
"Blackhole",
|
||||
"Blackholes",
|
||||
"bquote",
|
||||
"Bytestring",
|
||||
"callsite",
|
||||
"cata",
|
||||
"CESK",
|
||||
"Cmds",
|
||||
"Colour",
|
||||
"Combinators",
|
||||
"conv",
|
||||
"Corasick",
|
||||
"datatypes",
|
||||
"determinator",
|
||||
"determinators",
|
||||
"distrib",
|
||||
"eithers",
|
||||
"elems",
|
||||
"ents",
|
||||
"floorplan",
|
||||
"Focusable",
|
||||
"foldl",
|
||||
"foldr",
|
||||
"Gameplay",
|
||||
"Hashable",
|
||||
"hifi",
|
||||
"HLINT",
|
||||
"homomorphic",
|
||||
"hsep",
|
||||
"Ixed",
|
||||
"JSONE",
|
||||
"Keymap",
|
||||
"kolor",
|
||||
"leaderboard",
|
||||
"mappend",
|
||||
"mconcat",
|
||||
"mempty",
|
||||
"Monoid",
|
||||
"multiset",
|
||||
"multiworld",
|
||||
"objs",
|
||||
"omni",
|
||||
"Parameterizable",
|
||||
"parens",
|
||||
"pathfinding",
|
||||
"Perlin",
|
||||
"perp",
|
||||
"playfield",
|
||||
"Polytype",
|
||||
"polytypes",
|
||||
"pparens",
|
||||
"prec",
|
||||
"precomputation",
|
||||
"Precompute",
|
||||
"preprocess",
|
||||
"prereq",
|
||||
"prereqs",
|
||||
"Prettyprinter",
|
||||
"preuse",
|
||||
"previewable",
|
||||
"pushable",
|
||||
"quasiquoter",
|
||||
"quasiquoters",
|
||||
"sconcat",
|
||||
"scrollability",
|
||||
"selfdestruct",
|
||||
"Semigroup",
|
||||
"snoc",
|
||||
"Splittable",
|
||||
"squote",
|
||||
"SRGB",
|
||||
"struct",
|
||||
"Structs",
|
||||
"Subdir",
|
||||
"Substate",
|
||||
"subrecord",
|
||||
"subterms",
|
||||
"subtyping",
|
||||
"Subworld",
|
||||
"subworlds",
|
||||
"succ",
|
||||
"reqs",
|
||||
"teleporting",
|
||||
"Tiebreaking",
|
||||
"toplevel",
|
||||
"tuplify",
|
||||
"typecheck",
|
||||
"typechecked",
|
||||
"typechecks",
|
||||
"typeclass",
|
||||
"ucata",
|
||||
"Unchainable",
|
||||
"uncurry",
|
||||
"unequip",
|
||||
"unfoldr",
|
||||
"uniplate",
|
||||
"unranked",
|
||||
"Unwalkable",
|
||||
"unwords",
|
||||
"upperleft",
|
||||
"vals",
|
||||
"verbed",
|
||||
"wakeable",
|
||||
"wakeup",
|
||||
"walkability"
|
||||
]
|
||||
}
|
@ -60,8 +60,8 @@ cycleSortDirection (InventorySortOptions direction order) =
|
||||
-- | All non-alphabetic sort criteria perform alphabetic tie-breaking.
|
||||
-- "Reverse ordering" only applies to the *primary* sort criteria; the secondary
|
||||
-- alphabetic sort is always in ascending order.
|
||||
getSortCompartor :: Ord a => InventorySortOptions -> (a, Entity) -> (a, Entity) -> Ordering
|
||||
getSortCompartor (InventorySortOptions direction order) = case order of
|
||||
getSortComparator :: Ord a => InventorySortOptions -> (a, Entity) -> (a, Entity) -> Ordering
|
||||
getSortComparator (InventorySortOptions direction order) = case order of
|
||||
ByNaturalAlphabetic -> compReversible (alphabetic . snd)
|
||||
ByQuantity -> compReversible fst <> secondary
|
||||
ByType -> compReversible (view entityProperties . snd) <> secondary
|
||||
@ -76,4 +76,4 @@ getSortCompartor (InventorySortOptions direction order) = case order of
|
||||
|
||||
sortInventory :: Ord a => InventorySortOptions -> [(a, Entity)] -> [(a, Entity)]
|
||||
sortInventory opts =
|
||||
sortBy $ getSortCompartor opts
|
||||
sortBy $ getSortComparator opts
|
||||
|
@ -315,7 +315,7 @@ data Const
|
||||
|
||||
-- | Logical equality comparison
|
||||
Eq
|
||||
| -- | Logical unequality comparison
|
||||
| -- | Logical inequality comparison
|
||||
Neq
|
||||
| -- | Logical lesser-then comparison
|
||||
Lt
|
||||
|
@ -7,7 +7,7 @@
|
||||
--
|
||||
-- Simple Markdown AST and related utilities.
|
||||
--
|
||||
-- Parametrising 'Document' with the type of
|
||||
-- Parameterising 'Document' with the type of
|
||||
-- inline code and code blocks allows us to
|
||||
-- inspect and validate Swarm code in descriptions.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user