Skip to content

Commit

Permalink
Cleanup + dump ttc version
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-snails committed Jul 5, 2023
1 parent 64b332b commit ad03731
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Core/Binary.idr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import public Libraries.Utils.Binary
||| version number if you're changing the version more than once in the same day.
export
ttcVersion : Int
ttcVersion = 20230624 * 100 + 0
ttcVersion = 20230705 * 100 + 0

export
checkTTCVersion : String -> Int -> Int -> Core ()
Expand Down
1 change: 0 additions & 1 deletion src/TTImp/Elab/Utils.idr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ detagSafe defs _ = pure False
export
isUnitType :
{auto _ : Ref Ctxt Defs} ->
{vs : _} ->
Term vs ->
Core Bool
isUnitType (Ref fc (TyCon {}) n) = do
Expand Down
4 changes: 2 additions & 2 deletions src/TTImp/ProcessData.idr
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ findNewtype [con]
_ => Nothing
findNewtype _ = pure ()

hasArgs : {auto _ : Ref Ctxt Defs} -> {vs : _} -> Nat -> Term vs -> Core Bool
hasArgs : {auto _ : Ref Ctxt Defs} -> Nat -> Term vs -> Core Bool
hasArgs (S k) (Bind _ _ (Pi _ c _ ty) sc)
= if isErased c || !(isUnitType ty)
then hasArgs (S k) sc
Expand Down Expand Up @@ -277,7 +277,7 @@ typeCon (App _ fn _) = typeCon fn
typeCon _ = Nothing

shaped : {auto c : Ref Ctxt Defs} ->
({vs : _} -> Term vs -> Core Bool) ->
(forall vs. Term vs -> Core Bool) ->
List Constructor -> Core (Maybe Name)
shaped as [] = pure Nothing
shaped as (c :: cs)
Expand Down

0 comments on commit ad03731

Please sign in to comment.