@@ -36,7 +36,7 @@ type RTV =
38constrain :: RTV -> Can.Expr -> Expectation -> IO Constraint
38constrain :: RTV -> Can.Expr -> Expectation -> IO Constraint
39−constrain rtv (A.A region expression) expectation =
39+constrain rtv (A.At region expression) expectation =
40 case expression of
40 case expression of
41 Can.VarLocal name ->
41 Can.VarLocal name ->
42 return (CLookup region name expectation)
42 return (CLookup region name expectation)
@@ -225,7 +225,7 @@ constrainCallBackup rtv region maybeFuncName func args =
227getFuncName :: Can.Expr -> Maybe FuncName
227getFuncName :: Can.Expr -> Maybe FuncName
228−getFuncName (A.A _ expr) =
228+getFuncName (A.At _ expr) =
229 case expr of
229 case expr of
230 Can.VarLocal name ->
230 Can.VarLocal name ->
231 Just (FuncName name)
231 Just (FuncName name)
@@ -532,7 +532,7 @@ constrainDestruct rtv region pattern expr bodyCon =
532constrainDef :: RTV -> Can.Def -> Constraint -> IO Constraint
532constrainDef :: RTV -> Can.Def -> Constraint -> IO Constraint
533constrainDef rtv def bodyCon =
533constrainDef rtv def bodyCon =
534 case def of
534 case def of
535− Can.Def (A.A region name) args _ expr ->
535+ Can.Def (A.At region name) args _ expr ->
536 do (Args vars tipe resultType (Pattern.State headers pvars revCons)) <-
536 do (Args vars tipe resultType (Pattern.State headers pvars revCons)) <-
537 constrainArgs args
537 constrainArgs args
@@ -543,7 +543,7 @@ constrainDef rtv def bodyCon =
544 { _rigidVars = []
544 { _rigidVars = []
545 , _flexVars = vars
545 , _flexVars = vars
546− , _header = Map.singleton name (A.A region tipe)
546+ , _header = Map.singleton name (A.At region tipe)
547 , _headerCon =
547 , _headerCon =
549 { _rigidVars = []
549 { _rigidVars = []
@@ -555,7 +555,7 @@ constrainDef rtv def bodyCon =
555 , _bodyCon = bodyCon
555 , _bodyCon = bodyCon
558− Can.TypedDef (A.A region name) freeVars typedArgs _ expr srcResultType ->
558+ Can.TypedDef (A.At region name) freeVars typedArgs _ expr srcResultType ->
559 do let newNames = Map.difference freeVars rtv
559 do let newNames = Map.difference freeVars rtv
560 newRigids <- Map.traverseWithKey (\n _ -> nameToRigid n) newNames
560 newRigids <- Map.traverseWithKey (\n _ -> nameToRigid n) newNames
561 let newRtv = Map.union rtv (Map.map VarN newRigids)
561 let newRtv = Map.union rtv (Map.map VarN newRigids)
@@ -571,7 +571,7 @@ constrainDef rtv def bodyCon =
572 { _rigidVars = Map.elems newRigids
572 { _rigidVars = Map.elems newRigids
573 , _flexVars = []
573 , _flexVars = []
574− , _header = Map.singleton name (A.A region tipe)
574+ , _header = Map.singleton name (A.At region tipe)
575 , _headerCon =
575 , _headerCon =
577 { _rigidVars = []
577 { _rigidVars = []
@@ -620,7 +620,7 @@ recDefsHelp rtv defs bodyCon rigidInfo flexInfo =
621 def : otherDefs ->
621 def : otherDefs ->
622 case def of
622 case def of
623− Can.Def (A.A region name) args _ expr ->
623+ Can.Def (A.At region name) args _ expr ->
624 do let (Info flexVars flexCons flexHeaders) = flexInfo
624 do let (Info flexVars flexCons flexHeaders) = flexInfo
626 (Args newFlexVars tipe resultType (Pattern.State headers pvars revCons)) <-
626 (Args newFlexVars tipe resultType (Pattern.State headers pvars revCons)) <-
@@ -642,10 +642,10 @@ recDefsHelp rtv defs bodyCon rigidInfo flexInfo =
643 { _vars = newFlexVars
643 { _vars = newFlexVars
644 , _cons = defCon : flexCons
644 , _cons = defCon : flexCons
645− , _headers = Map.insert name (A.A region tipe) flexHeaders
645+ , _headers = Map.insert name (A.At region tipe) flexHeaders
648− Can.TypedDef (A.A region name) freeVars typedArgs _ expr srcResultType ->
648+ Can.TypedDef (A.At region name) freeVars typedArgs _ expr srcResultType ->
649 do let newNames = Map.difference freeVars rtv
649 do let newNames = Map.difference freeVars rtv
650 newRigids <- Map.traverseWithKey (\n _ -> nameToRigid n) newNames
650 newRigids <- Map.traverseWithKey (\n _ -> nameToRigid n) newNames
651 let newRtv = Map.union rtv (Map.map VarN newRigids)
651 let newRtv = Map.union rtv (Map.map VarN newRigids)
@@ -671,7 +671,7 @@ recDefsHelp rtv defs bodyCon rigidInfo flexInfo =
672 { _vars = Map.foldr (:) rigidVars newRigids
672 { _vars = Map.foldr (:) rigidVars newRigids
673 , _cons = defCon : rigidCons
673 , _cons = defCon : rigidCons
674− , _headers = Map.insert name (A.A region tipe) rigidHeaders
674+ , _headers = Map.insert name (A.At region tipe) rigidHeaders
@@ -738,7 +738,7 @@ typedArgsHelp rtv name args resultType state =
739 return $ TypedArgs resultType resultType state
739 return $ TypedArgs resultType resultType state
741− (Can.TypedArg index srcType pattern@(A.A region _)) : otherArgs ->
741+ (Can.TypedArg index srcType pattern@(A.At region _)) : otherArgs ->
742 do argType <- Instantiate.fromSrcType rtv srcType
742 do argType <- Instantiate.fromSrcType rtv srcType
743 let expect = PatternExpectation region (PTypedArg name index) argType
743 let expect = PatternExpectation region (PTypedArg name index) argType