|
| 1 | +--- |
| 2 | +title: Resolve names only once in Liquid Haskell |
| 3 | +--- |
| 4 | + |
| 5 | +Liquid Haskell is a tool to verify Haskell programs. The programmer supplies |
| 6 | +specifications for functions and data types in special comments, and the tool |
| 7 | +produces error messages when it cannot automatically prove that the program |
| 8 | +behaves as specified. The programmer can then improve the specifications or the |
| 9 | +program until the tool reports no errors. More information is available on the |
| 10 | +[Liquid Haskell website](https://ucsd-progsys.github.io/liquidhaskell/). |
| 11 | + |
| 12 | +Liquid Haskell has been around for 10 years and is a versatile tool, but it |
| 13 | +still has a few issues which hinder the user experience. This project is to |
| 14 | +address one of these shortcomings. |
| 15 | + |
| 16 | +When analyzing a program, Liquid Haskell needs to link identifiers that appear |
| 17 | +in specifications to the entities they refer to, much in the same way that a |
| 18 | +compiler needs to link identifiers in the text of a function to the language |
| 19 | +entities that they represent. This task is called name resolution. |
| 20 | + |
| 21 | +The identifiers in a specification can refer to other specifications, or they |
| 22 | +can refer to Haskell entities like functions and types. The output of name |
| 23 | +resolution tells for each identifier the module in which the referred entity is |
| 24 | +defined and the package it comes from. |
| 25 | + |
| 26 | +At the moment, name resolution in Liquid Haskell is done twice for the same |
| 27 | +specifications, and the outcomes of both passes do not always yield the same |
| 28 | +result, leading to confusing errors and tedious workarounds. This task is about |
| 29 | +having name resolution done only once. For more details please see [the github |
| 30 | +issue](https://github.com/ucsd-progsys/liquidhaskell/issues/2169). |
| 31 | + |
| 32 | +A proposal should include answers to at least the following questions plus any |
| 33 | +others that the candidate considers relevant: |
| 34 | + |
| 35 | +* What names should be accessible in the specifications of a given module? |
| 36 | + |
| 37 | +* What should be the mechanism to bring names in scope? |
| 38 | + |
| 39 | +* How should the system negotiate or resolve ambiguous names? |
| 40 | + |
| 41 | +* Which design and/or implementation steps should be done to adjust Liquid |
| 42 | + Haskell to the proposed behaviors? |
| 43 | + |
| 44 | +* How much effort would the previous steps take? |
| 45 | + |
| 46 | +Proposals should also account for the writing of a blog post summarizing the |
| 47 | +contributions at the end. |
| 48 | + |
| 49 | +**Potential Mentors**: Facundo Domínguez |
| 50 | + |
| 51 | +**Difficulty**: Medium |
| 52 | + |
| 53 | +**Size**: 350 hours but they are flexible by adjusting the scope |
0 commit comments