Skip to content

Commit c03a40a

Browse files
Anton-Latukhajwiegley
authored andcommitted
upd texts of more messages
Heterogeneous: consisting of dissimilar elements. Heterogenous: 1. not originating within the body; (ex: "You are NOT of the body!" by Dr. Leonard "Bones" McCoy) 2. of foreign origin; 3. heterogeneous.
1 parent e3f5eaf commit c03a40a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Nix/Expr/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ instance (Serialise v, Serialise r) => Serialise (Antiquoted v r)
264264

265265
-- | An 'NString' is a list of things that are either a plain string
266266
-- or an antiquoted expression. After the antiquotes have been evaluated,
267-
-- the final string is constructed by concating all the parts.
267+
-- the final string is constructed by concatenating all the parts.
268268
data NString r
269269
= DoubleQuoted ![Antiquoted Text r]
270270
-- ^ Strings wrapped with double-quotes (") can contain literal newline

src/Nix/Pretty.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ data NixDoc ann = NixDoc
6666
-- parentheses.
6767
, rootOp :: OperatorInfo
6868
, wasPath :: Bool -- This is needed so that when a path is used in a selector path
69-
-- we can add brackets appropiately
69+
-- we can add brackets appropriately
7070
}
7171

7272
mkNixDoc :: Doc ann -> OperatorInfo -> NixDoc ann
@@ -83,7 +83,7 @@ pathExpr d = (simpleExpr d) { wasPath = True }
8383

8484
-- | An expression that behaves as if its root operator had a precedence lower
8585
-- than all other operators. That ensures that the expression is wrapped in
86-
-- parantheses in almost always, but it's still rendered without parentheses
86+
-- parentheses in almost always, but it's still rendered without parentheses
8787
-- in cases where parentheses are never required (such as in the LHS of a
8888
-- binding).
8989
leastPrecedence :: Doc ann -> NixDoc ann

src/Nix/Reduce.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ reduce (NBinary_ bann op larg rarg) = do
186186
return $ Fix (NConstant_ ann (NInt (x + y)))
187187
_ -> pure $ Fix $ NBinary_ bann op lval rval
188188

189-
-- | Reduce a select on a Set by substituing the set to the selected value.
189+
-- | Reduce a select on a Set by substituting the set to the selected value.
190190
--
191191
-- Before applying this reduction, we need to ensure that:
192192
--

src/Nix/Type/Type.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ newtype TVar = TV String
1010
data Type
1111
= TVar TVar -- type variable
1212
| TCon String -- known type
13-
| TSet Bool (AttrSet Type) -- heterogenous map, bool if variadic
14-
| TList [Type] -- heterogenous list
13+
| TSet Bool (AttrSet Type) -- heterogeneous map, bool if variadic
14+
| TList [Type] -- heterogeneous list
1515
| (:~>) Type Type -- type -> type
1616
| TMany [Type] -- variant type
1717
deriving (Show, Eq, Ord)

src/Nix/Value.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ iterNValue' k f = f . fmap (\a -> k a (iterNValue' k f))
245245

246246
-- | An 'NValueNF' is a fully evaluated value in normal form. An 'NValue f t m' is
247247
-- a value in head normal form, where only the "top layer" has been
248-
-- evaluated. An action of type 'm (NValue f t m)' is a pending evualation that
248+
-- evaluated. An action of type 'm (NValue f t m)' is a pending evaluation that
249249
-- has yet to be performed. An 't' is either a pending evaluation, or
250250
-- a value in head normal form. A 'NThunkSet' is a set of mappings from keys
251251
-- to thunks.

tests/TestCommon.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ hnixEvalText :: Options -> Text -> IO (StdValue (StandardT (StdIdT IO)))
4444
hnixEvalText opts src = case parseNixText src of
4545
Failure err ->
4646
error
47-
$ "Parsing failed for expressien `"
47+
$ "Parsing failed for expression `"
4848
++ unpack src
4949
++ "`.\n"
5050
++ show err

0 commit comments

Comments
 (0)