Skip to content

Commit 5d70807

Browse files
committed
Sync test data
1 parent 24eb8cf commit 5d70807

13 files changed

+1427
-14
lines changed

glean/lang/codemarkup/tests/haskell/code/A.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ zero = 0
3939

4040
f :: R a -> T a
4141
f R{f2 = [x]} = C3 x
42-
f r | m (3::Int) = C2 (ord (f1 r))
43-
42+
f r | m (3::Int) = C2 (ord (f1 r { f1 = 'a' }))
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
9+
10+
module B
11+
( b
12+
, r
13+
) where
14+
15+
import A
16+
import Data.Char(ord)
17+
18+
b :: [Int]
19+
b = reverse $ map ord a
20+
21+
r :: R Char
22+
r = A.R { f1 = 'a', f2 = "abc" }

glean/lang/codemarkup/tests/haskell/code/entity_location.out

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
},
276276
"location": {
277277
"file": { "key": "glean/lang/codemarkup/tests/haskell/code/A.hs" },
278-
"location": { "span": { "length": 55, "start": 562 } },
278+
"location": { "span": { "length": 68, "start": 562 } },
279279
"name": "f"
280280
}
281281
}
@@ -439,5 +439,45 @@
439439
"name": "zero"
440440
}
441441
}
442+
},
443+
{
444+
"key": {
445+
"entity": {
446+
"hs": {
447+
"key": {
448+
"mod": {
449+
"key": { "name": { "key": "B" }, "unit": { "key": "main" } }
450+
},
451+
"occ": { "key": { "name": "b", "namespace_": 0 } },
452+
"sort": { "external": { } }
453+
}
454+
}
455+
},
456+
"location": {
457+
"file": { "key": "glean/lang/codemarkup/tests/haskell/code/B.hs" },
458+
"location": { "span": { "length": 23, "start": 290 } },
459+
"name": "b"
460+
}
461+
}
462+
},
463+
{
464+
"key": {
465+
"entity": {
466+
"hs": {
467+
"key": {
468+
"mod": {
469+
"key": { "name": { "key": "B" }, "unit": { "key": "main" } }
470+
},
471+
"occ": { "key": { "name": "r", "namespace_": 0 } },
472+
"sort": { "external": { } }
473+
}
474+
}
475+
},
476+
"location": {
477+
"file": { "key": "glean/lang/codemarkup/tests/haskell/code/B.hs" },
478+
"location": { "span": { "length": 32, "start": 327 } },
479+
"name": "r"
480+
}
481+
}
442482
}
443483
]

0 commit comments

Comments
 (0)