-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of typechecking and other checking processes (#1410)
* Refactor in progress * Fixing imports and missing references * Remove unnecessary import
- Loading branch information
1 parent
39a300e
commit a6ac12c
Showing
57 changed files
with
193 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/Juvix/Syntax/MicroJuvix/ArityChecker.hs → src/Juvix/Analysis/Arity.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...x/Syntax/MicroJuvix/ArityChecker/Arity.hs → src/Juvix/Analysis/Arity/Arity.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...x/Syntax/MicroJuvix/ArityChecker/Error.hs → src/Juvix/Analysis/Arity/Error.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ax/MicroJuvix/ArityChecker/Error/Types.hs → src/Juvix/Analysis/Arity/Error/Types.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ntax/MicroJuvix/ArityChecker/LocalVars.hs → src/Juvix/Analysis/Arity/LocalVars.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Juvix.Analysis.Positivity | ||
( module Juvix.Analysis.Positivity.Checker, | ||
) | ||
where | ||
|
||
import Juvix.Analysis.Positivity.Checker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Juvix.Analysis.Scoping | ||
( module Juvix.Analysis.Scoping.Scope, | ||
module Juvix.Analysis.Scoping.Scoper, | ||
module Juvix.Analysis.Scoping.InfoTableBuilder, | ||
module Juvix.Analysis.Scoping.ScoperResult, | ||
) | ||
where | ||
|
||
import Juvix.Analysis.Scoping.InfoTableBuilder | ||
import Juvix.Analysis.Scoping.Scope | ||
import Juvix.Analysis.Scoping.Scoper | ||
import Juvix.Analysis.Scoping.ScoperResult |
4 changes: 2 additions & 2 deletions
4
...oncrete/Scoped/Scoper/InfoTableBuilder.hs → ...uvix/Analysis/Scoping/InfoTableBuilder.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Juvix/Syntax/Concrete/Scoped/Scope.hs → src/Juvix/Analysis/Scoping/Scope.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ax/Concrete/Scoped/Scoper/ScoperResult.hs → src/Juvix/Analysis/Scoping/ScoperResult.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Juvix.Analysis.Termination | ||
( module Juvix.Analysis.Termination.Checker, | ||
module Juvix.Analysis.Termination.Types, | ||
module Juvix.Analysis.Termination.Error, | ||
module Juvix.Analysis.Termination.LexOrder, | ||
) | ||
where | ||
|
||
import Juvix.Analysis.Termination.Checker | ||
import Juvix.Analysis.Termination.Error | ||
import Juvix.Analysis.Termination.LexOrder | ||
import Juvix.Analysis.Termination.Types |
16 changes: 8 additions & 8 deletions
16
src/Juvix/Termination/Checker.hs → src/Juvix/Analysis/Termination/Checker.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Juvix.Analysis.Termination.Error | ||
( module Juvix.Analysis.Termination.Error, | ||
module Juvix.Analysis.Termination.Error.Pretty, | ||
module Juvix.Analysis.Termination.Error.Types, | ||
) | ||
where | ||
|
||
import Juvix.Analysis.Termination.Error.Pretty | ||
import Juvix.Analysis.Termination.Error.Types | ||
import Juvix.Prelude | ||
|
||
newtype TerminationError | ||
= ErrNoLexOrder NoLexOrder | ||
deriving stock (Show) | ||
|
||
instance ToGenericError TerminationError where | ||
genericError :: TerminationError -> GenericError | ||
genericError = \case | ||
ErrNoLexOrder e -> genericError e |
10 changes: 5 additions & 5 deletions
10
src/Juvix/Termination/Error/Pretty.hs → ...uvix/Analysis/Termination/Error/Pretty.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Juvix/Termination/Error/Pretty/Ann.hs → .../Analysis/Termination/Error/Pretty/Ann.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Juvix/Termination/Error/Pretty/Ansi.hs → ...Analysis/Termination/Error/Pretty/Ansi.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Juvix/Termination/Error/Types.hs → ...Juvix/Analysis/Termination/Error/Types.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Juvix/Termination/FunctionCall.hs → ...uvix/Analysis/Termination/FunctionCall.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Juvix/Termination/LexOrder.hs → src/Juvix/Analysis/Termination/LexOrder.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Juvix.Analysis.Termination.Types | ||
( module Juvix.Analysis.Termination.Types.FunctionCall, | ||
module Juvix.Analysis.Termination.Types.Graph, | ||
module Juvix.Analysis.Termination.Types.SizeInfo, | ||
module Juvix.Analysis.Termination.Types.SizeRelation, | ||
) | ||
where | ||
|
||
import Juvix.Analysis.Termination.Types.FunctionCall | ||
import Juvix.Analysis.Termination.Types.Graph | ||
import Juvix.Analysis.Termination.Types.SizeInfo | ||
import Juvix.Analysis.Termination.Types.SizeRelation |
4 changes: 2 additions & 2 deletions
4
src/Juvix/Termination/Types/FunctionCall.hs → ...nalysis/Termination/Types/FunctionCall.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/Juvix/Termination/Types/Graph.hs → ...Juvix/Analysis/Termination/Types/Graph.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Juvix/Termination/Types/SizeInfo.hs → ...ix/Analysis/Termination/Types/SizeInfo.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.