mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
Formatting
This commit is contained in:
parent
5398b1037f
commit
1fe3987168
@ -32,14 +32,12 @@ module ScopeDef = struct
|
||||
|
||||
let compare x y =
|
||||
match x, y with
|
||||
| Var (x, stx), Var (y, sty) ->
|
||||
(match ScopeVar.compare x y with
|
||||
| 0 -> Option.compare StateName.compare stx sty
|
||||
| n -> n)
|
||||
| SubScopeVar (x', x, _), SubScopeVar (y', y, _) ->
|
||||
(match SubScopeName.compare x' y' with
|
||||
| 0 -> ScopeVar.compare x y
|
||||
| n -> n)
|
||||
| Var (x, stx), Var (y, sty) -> (
|
||||
match ScopeVar.compare x y with
|
||||
| 0 -> Option.compare StateName.compare stx sty
|
||||
| n -> n)
|
||||
| SubScopeVar (x', x, _), SubScopeVar (y', y, _) -> (
|
||||
match SubScopeName.compare x' y' with 0 -> ScopeVar.compare x y | n -> n)
|
||||
| Var _, _ -> -1
|
||||
| _, Var _ -> 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user