{"id":{"repo_id":"calgary","oai_identifier":"oai:ucalgary.scholaris.ca:1880/123173"},"canonical_url":"https://search.ndltd.org/etd/calgary/oai:ucalgary.scholaris.ca:1880/123173","repository":{"repo_id":"calgary","name":"University of Calgary","base_url":"https://ucalgary.scholaris.ca/server/oai/request"},"display":{"title":"Universally Quantified Type Inference","abstract":"Haskell’s type system is based on the Hindley–Milner type system, which supports only rank-1 types. As functional languages have evolved, higher-rank types have been recognized as being useful for expressing more general abstract functions. Peyton Jones et al. introduced a type inference algorithm for universally quantified types in Haskell. Full type inference for higher-ranked types is undecidable and consequently it often requires explicit type annotations to facilitate type inference. In this work, we propose a new algorithm for inferring these types. Our approach is demonstrated using a minimal programming language syntax and provides a modular method for inferring higher-ranked types. The inference process is organized into two distinct steps: generating type equations and then solving them. By separating the collection of equations from their resolution, this thesis gives a more modular inference algorithm, which is slightly more general than the bidirectional system introduced by Peyton Jones.","abstract_html":"Haskell’s type system is based on the Hindley–Milner type system, which supports only rank-1 types. As functional languages have evolved, higher-rank types have been recognized as being useful for expressing more general abstract functions. Peyton Jones et al. introduced a type inference algorithm for universally quantified types in Haskell. Full type inference for higher-ranked types is undecidable and consequently it often requires explicit type annotations to facilitate type inference. In this work, we propose a new algorithm for inferring these types. Our approach is demonstrated using a minimal programming language syntax and provides a modular method for inferring higher-ranked types. The inference process is organized into two distinct steps: generating type equations and then solving them. By separating the collection of equations from their resolution, this thesis gives a more modular inference algorithm, which is slightly more general than the bidirectional system introduced by Peyton Jones.","abstract_has_math":false,"creators":["Daneshmandjahromi, Saina"],"institution":"Graduate Studies","degree_name":"Master of Science (MSc)","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":["Cockett, Robin"],"committee_chairs":[],"committee_members":["Fong, Philip","Zach, Richard"],"year":2025,"date_issued":"2025-11-06","date_published":"2025-11-06","updated_at":"2026-11-19T07:23:51Z","subjects":["Functional Programming","Type Inference","Haskell"],"languages":["en"],"rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/123173"],"render_values":[{"text":"https://hdl.handle.net/1880/123173","href":"https://hdl.handle.net/1880/123173","code":true}]},{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Daneshmandjahromi, S. (2025). Universally quantified type inference (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."],"render_values":[{"text":"Daneshmandjahromi, S. (2025). Universally quantified type inference (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.11575/PRISM/50706","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.11575/PRISM/50706","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Acalgary%3Aoai%3Aucalgary.scholaris.ca%3A1880%2F123173","prefix":"oai_dc"},"source_record":{"url":"https://ucalgary.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aucalgary.scholaris.ca%3A1880%2F123173","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Cockett, Robin"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Fong, Philip","Zach, Richard"]},{"key":"dc:creator","label":"Author","values":["Daneshmandjahromi, Saina"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-02"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-11-12T17:23:39Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-11-06"]},{"key":"dc:publisher.faculty","label":"Dc Publisher Faculty","values":["Graduate Studies"]},{"key":"dc:publisher.institution","label":"Dc Publisher Institution","values":["University of Calgary"]},{"key":"dc:type","label":"Dc Type","values":["master thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MSc)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Calgary"]},{"key":"thesis:release_request","label":"Thesis Release Request","values":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Functional Programming","Type Inference","Haskell"]},{"key":"dc:subject.classification","label":"Dc Subject Classification","values":["Computer Science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Daneshmandjahromi, S. (2025). Universally quantified type inference (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."]},{"key":"dc:identifier.doi","label":"DOI","values":["https://dx.doi.org/10.11575/PRISM/50706"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/123173"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Haskell’s type system is based on the Hindley–Milner type system, which supports only rank-1 types. As functional languages have evolved, higher-rank types have been recognized as being useful for expressing more general abstract functions. Peyton Jones et al. introduced a type inference algorithm for universally quantified types in Haskell. Full type inference for higher-ranked types is undecidable and consequently it often requires explicit type annotations to facilitate type inference. In this work, we propose a new algorithm for inferring these types. Our approach is demonstrated using a minimal programming language syntax and provides a modular method for inferring higher-ranked types. The inference process is organized into two distinct steps: generating type equations and then solving them. By separating the collection of equations from their resolution, this thesis gives a more modular inference algorithm, which is slightly more general than the bidirectional system introduced by Peyton Jones."]},{"key":"dc:title","label":"Title","values":["Universally Quantified Type Inference"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Cockett, Robin"],"dc:contributor.committeemember":["Fong, Philip","Zach, Richard"],"dc:creator":["Daneshmandjahromi, Saina"],"dc:date":["2026-02"],"dc:date.accessioned":["2025-11-12T17:23:39Z"],"dc:date.issued":["2025-11-06"],"dc:description.abstract":["Haskell’s type system is based on the Hindley–Milner type system, which supports only rank-1 types. As functional languages have evolved, higher-rank types have been recognized as being useful for expressing more general abstract functions. Peyton Jones et al. introduced a type inference algorithm for universally quantified types in Haskell. Full type inference for higher-ranked types is undecidable and consequently it often requires explicit type annotations to facilitate type inference. In this work, we propose a new algorithm for inferring these types. Our approach is demonstrated using a minimal programming language syntax and provides a modular method for inferring higher-ranked types. The inference process is organized into two distinct steps: generating type equations and then solving them. By separating the collection of equations from their resolution, this thesis gives a more modular inference algorithm, which is slightly more general than the bidirectional system introduced by Peyton Jones."],"dc:identifier.citation":["Daneshmandjahromi, S. (2025). Universally quantified type inference (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."],"dc:identifier.doi":["https://dx.doi.org/10.11575/PRISM/50706"],"dc:identifier.uri":["https://hdl.handle.net/1880/123173"],"dc:language.iso":["en"],"dc:publisher.faculty":["Graduate Studies"],"dc:publisher.institution":["University of Calgary"],"dc:rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"dc:subject":["Functional Programming","Type Inference","Haskell"],"dc:subject.classification":["Computer Science"],"dc:title":["Universally Quantified Type Inference"],"dc:type":["master thesis"],"dspace:entity.type":["Publication"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Master of Science (MSc)"],"thesis:institution_name":["University of Calgary"],"thesis:release_request":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]},"updated_at":"2026-11-19T07:23:51Z"}