1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/test
janmasrovira 0f29b3ee93
Fix type synonym in let (#1880)
- Closes #1879 

The issue was possibly caused by the use of `readerState`:
```
readerState :: forall a r x. (Member (State a) r) => Sem (Reader a ': r) x -> Sem r x
readerState m = get >>= (`runReader` m)
```

I originally thought it would be a good idea to "freeze" some `State`
effect into a `Reader` effect in the following situation:
- Some function `s` needs to update the state.
- Some function `f` only reads the state.
- Then you would have `g .. = ... readerState @MyState f`
- This way, it would be reflected in the type that `g` cannot update the
state. However, for some reason I have not been able to clearly
identify, this was not working as expected.
2023-03-10 09:53:05 +01:00
..
Arity Give proper errors for incorrect application of lazy builtins (#1830) 2023-02-10 19:21:46 +01:00
Asm Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
BackendC Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
BackendGeb Fix Core-To-Geb translation (#1863) 2023-02-28 18:49:44 +01:00
Compilation Add compilation of complex pattern matching to case (#1824) 2023-02-15 11:30:12 +01:00
Core Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
Internal Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
Parsing Keep regular comments in html output (#1766) 2023-01-27 13:24:28 +01:00
Reachability Add builtin nat and bool types as start nodes in reachability analysis (#1775) 2023-01-27 15:21:38 +00:00
Runtime Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
Scope Allow shadowing local variables with let function definitions (#1847) 2023-02-22 10:26:54 +01:00
Termination Fix termination with as-patterns (#1787) 2023-01-31 17:54:18 +01:00
Typecheck Fix type synonym in let (#1880) 2023-03-10 09:53:05 +01:00
Arity.hs Support implicit arguments (#144) 2022-06-13 14:25:22 +02:00
Asm.hs Translation from JuvixAsm to C (#1619) 2022-12-06 11:33:20 +01:00
BackendC.hs Support partial application and closure passing in C backend (#190) 2022-06-28 10:25:43 +02:00
BackendGeb.hs Add Geb Backend Evaluator with some extra subcommands (#1808) 2023-02-22 15:27:40 +01:00
Base.hs Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
Compilation.hs Tests for the new compilation pipeline (#1703) 2023-01-12 11:22:32 +01:00
Core.hs JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Format.hs Improve comma formatting (#1842) 2023-02-14 15:27:11 +00:00
Internal.hs Add translation from Internal to Core (#1567) 2022-11-07 14:47:56 +01:00
Main.hs Add Geb Backend Evaluator with some extra subcommands (#1808) 2023-02-22 15:27:40 +01:00
Parsing.hs Disallow tab characters as spaces (#1523) 2022-09-07 13:59:41 +02:00
Reachability.hs Compute name dependency graph and filter unreachable definitions (#1408) 2022-07-25 18:38:44 +02:00
Runtime.hs Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00
Scope.hs [ CI ] New jobs: ormolu and hlint 2022-04-05 19:57:21 +02:00
Termination.hs Add the termination checker to the pipeline (#111) 2022-05-30 13:40:52 +02:00
Typecheck.hs Add lambda expressions to internal and add typechecking support (#1538) 2022-09-23 15:43:18 +02:00