{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T13:31:14Z","timestamp":1794576674131,"version":"4.9.1"},"reference-count":53,"publisher":"Springer Science and Business Media LLC","issue":"4","license":[{"start":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T00:00:00Z","timestamp":1789084800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T00:00:00Z","timestamp":1789084800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Monash University","id":[{"id":"https:\/\/ror.org\/02bfwt286","id-type":"ROR","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Autom Softw Eng"],"published-print":{"date-parts":[[2026,12]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Statically typed languages offer many advantages in software engineering, including bug prevention, enhanced code quality, and reduced maintenance costs. However, these benefits come at the expense of a steep learning curve and a slower development pace. Although known for its expressive and strong type system, Haskell often frustrates programmers as they learn and use that type system, especially when debugging type errors. We introduce Goanna, a novel type checker for Haskell that focuses on improving error diagnostics. When a type error occurs, Goanna identifies a comprehensive list of possible causes and provides a potential course of action for each. To achieve this, Goanna uses constraint logic programming and Minimal Correction Subsets (MCSes) to support its diagnostics. We evaluated Goanna\u2019s effectiveness on 49,750 Haskell programs, demonstrating its ability to identify root causes with higher accuracy (81.6%) than traditional tools (Helium, 65.5%; GHC, 33.7%). In our benchmark study, Goanna shows performance constraints when diagnosing large programs containing complex errors, but remains responsive enough to provide real-time debugging assistance for small to medium-sized programs.<\/jats:p>","DOI":"10.1007\/s10515-026-00656-3","type":"journal-article","created":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T11:42:31Z","timestamp":1789126951000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Goanna: a novel approach for automated type error debugging"],"prefix":"10.1007","volume":"33","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5038-1521","authenticated-orcid":false,"given":"Shuai","family":"Fu","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"},{"role":"corresponding-author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9076-9571","authenticated-orcid":false,"given":"Tim","family":"Dwyer","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2186-0459","authenticated-orcid":false,"given":"Peter J.","family":"Stuckey","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4928-7076","authenticated-orcid":false,"given":"John C.","family":"Grundy","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"297","published-online":{"date-parts":[[2026,9,11]]},"reference":[{"key":"656_CR1","doi-asserted-by":"publisher","unstructured":"Bailey, J., Stuckey, P.J.: Discovery of minimal unsatisfiable subsets of constraints using hitting set dualization. In: Practical Aspects of Declarative Languages. Springer Berlin Heidelberg, pp 174\u2013186 (2005). https:\/\/doi.org\/10.1007\/978-3-540-30557-6_14","DOI":"10.1007\/978-3-540-30557-6_14"},{"key":"656_CR2","doi-asserted-by":"publisher","unstructured":"de\u00a0la Banda, M.G., Stuckey, P.J., Wazny, J.: Finding all minimal unsatisfiable subsets. In: Proceedings of the 5th ACM SIGPLAN international conference on Principles and practice of declaritive programming. ACM, New York, NY, USA (2003).https:\/\/doi.org\/10.1145\/888251.888256","DOI":"10.1145\/888251.888256"},{"key":"656_CR3","doi-asserted-by":"publisher","unstructured":"Bend\u00edk, J., \u010cern\u00e1, I.: MUST: Minimal unsatisfiable subsets enumeration tool. In: Biere A, Parker D (eds) Tools and Algorithms for the Construction and Analysis of Systems. Springer International Publishing, Cham, Lecture Notes in Computer Science, pp. 135\u2013152 (2020). https:\/\/doi.org\/10.1007\/978-3-030-45190-5_8","DOI":"10.1007\/978-3-030-45190-5_8"},{"key":"656_CR4","doi-asserted-by":"publisher","unstructured":"Chen, S., Erwig, M.: Counter-factual typing for debugging type errors. ACM SIGPLAN Notices 49(1), 583\u2013594 (2014). https:\/\/doi.org\/10.1145\/2578855.2535863","DOI":"10.1145\/2578855.2535863"},{"key":"656_CR5","doi-asserted-by":"publisher","unstructured":"Chen, S., Wu, B.: Efficient counter-factual type error debugging. Sci. Comput. Program. 200, 102544 (2020). https:\/\/doi.org\/10.1016\/j.scico.2020.102544","DOI":"10.1016\/j.scico.2020.102544"},{"key":"656_CR6","doi-asserted-by":"publisher","unstructured":"Chen, S., Noor, M.R.: Improving type error reporting for type classes. In: Lecture Notes in Computer Science. Lecture notes in computer science, Springer International Publishing, Cham, pp. 19\u201338 (2022).https:\/\/doi.org\/10.1007\/978-3-030-99461-7_2","DOI":"10.1007\/978-3-030-99461-7_2"},{"key":"656_CR7","doi-asserted-by":"publisher","unstructured":"Chen, S., Erwig, M., Smeltzer, K.: Let\u2019s hear both sides: On combining type-error reporting tools. In: 2014 IEEE Symposium on Visual Languages and Human-Centric Computing (VL\/HCC). IEEE, Melbourne, Australia, pp 145\u2013152 (2014).https:\/\/doi.org\/10.1109\/vlhcc.2014.6883038","DOI":"10.1109\/vlhcc.2014.6883038"},{"key":"656_CR8","unstructured":"Chong, C.J., Yao, Z., Neamtiu, I.: Artificial-intelligence generated code considered harmful: A road map for secure and high-quality code generation (2024). [csCR] arXiv:2409.19182 [cs.CR]"},{"key":"656_CR9","doi-asserted-by":"publisher","unstructured":"Endrikat, S., Hanenberg, S., Robbes, R. et\u00a0al.: How do API documentation and static typing affect API usability? In: Proceedings of the 36th International Conference on Software Engineering. ACM, New York, NY, USA, ICSE 2014, pp. 632\u2013642 (2014). https:\/\/doi.org\/10.1145\/2568225.2568299","DOI":"10.1145\/2568225.2568299"},{"issue":"1","key":"656_CR10","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/2063239.2063245","volume":"21","author":"M Erwig","year":"2011","unstructured":"Erwig, M., Walkingshaw, E.: The choice calculus: A representation for software variation. ACM Trans. Softw. Eng. Methodol. 21(1), 1\u201327 (2011). https:\/\/doi.org\/10.1145\/2063239.2063245","journal-title":"ACM Trans. Softw. Eng. Methodol."},{"key":"656_CR11","unstructured":"Ferdowsi, K.: The usability of advanced type systems: Rust as a case study (2023). arxiv.org\/abs\/2301.02308 [cs]"},{"key":"656_CR12","doi-asserted-by":"publisher","unstructured":"Fruehwirth, T.: Constraint handling rules - what else? (2017). [csPL] https:\/\/doi.org\/10.1007\/978-3-319-21542-6_2, arXiv:1701.02668 [cs.PL]","DOI":"10.1007\/978-3-319-21542-6_2"},{"key":"656_CR13","unstructured":"Fu, S.: Goanna-IDE: A haskell IDE for type error debugging (2023a). https:\/\/goanna-ide.fly.dev\/. Accessed 8 Oct 2023"},{"key":"656_CR14","unstructured":"Fu, S.: Goanna\u2019s haskell language coverage (2023b). https:\/\/goanna.fly.dev\/coverage.html. Accessed 8 Oct 2023"},{"key":"656_CR15","unstructured":"Fu,S.: Goanna, a haskell type checker based on constraint logic (2025). Accessed 12 March (2025). https:\/\/goanna-lang.org"},{"key":"656_CR16","doi-asserted-by":"publisher","unstructured":"Fu, S., Dwyer, T., Stuckey, P.J., et\u00a0al.: ChameleonIDE: Untangling type errors through interactive visualization and exploration (2023). https:\/\/doi.org\/10.48550\/arXiv.2303.09791","DOI":"10.48550\/arXiv.2303.09791"},{"key":"656_CR17","unstructured":"Gamari, B.: The glasgow haskell compiler (2025). https:\/\/www.haskell.org\/ghc\/. Accessed 1 June 2023"},{"key":"656_CR18","doi-asserted-by":"publisher","unstructured":"Gao, Z., Bird, C., Barr, E.T.: To type or not to type: Quantifying detectable bugs in JavaScript. In: 2017 IEEE\/ACM 39th International Conference on Software Engineering (ICSE). IEEE, pp. 758\u2013769 (2017). https:\/\/doi.org\/10.1109\/icse.2017.75","DOI":"10.1109\/icse.2017.75"},{"key":"656_CR19","unstructured":"Griesemer, R., Taylor, I.L.: An introduction to generics - the go programming language (2025). https:\/\/go.dev\/blog\/intro-generics. Accessed 19 Feb 2024"},{"key":"656_CR20","doi-asserted-by":"publisher","unstructured":"Haack, C., Wells, J.B.: Type error slicing in implicitly typed higher-order languages. Sci. Comput. Program. 50(1), 189\u2013224 (2004). https:\/\/doi.org\/10.1016\/j.scico.2004.01.004","DOI":"10.1016\/j.scico.2004.01.004"},{"key":"656_CR21","unstructured":"Hage, J.: Helium student program dataset. Private communication (2003)"},{"key":"656_CR22","volume-title":"Strategies for solving constraints in program analysis","author":"J Hage","year":"2006","unstructured":"Hage, J., Heeren, B.: Strategies for solving constraints in program analysis. Utrecht University, Tech. rep (2006)"},{"key":"656_CR23","unstructured":"Hage, J., Helium Contributors: Haskell helium - a haskell compiler (2023)"},{"key":"656_CR24","doi-asserted-by":"publisher","unstructured":"Heeren, B., Leijen, D., van IJzendoorn, A.: Helium, for learning haskell. In: Proceedings of the 2003 ACM SIGPLAN workshop on Haskell. ACM, New York, NY, USA, pp. 62\u201371 (2003). https:\/\/doi.org\/10.1145\/871895.871902","DOI":"10.1145\/871895.871902"},{"key":"656_CR25","doi-asserted-by":"publisher","unstructured":"Hudak, P., Hughes, J., Peyton\u00a0Jones, S., et\u00a0al.: A history of haskell: being lazy with class. In: Proceedings of the third ACM SIGPLAN conference on History of programming languages. ACM, New York, NY, USA, HOPL III, pp. 12\u20131\u201312\u201355 (2007). https:\/\/doi.org\/10.1145\/1238844.1238856","DOI":"10.1145\/1238844.1238856"},{"key":"656_CR26","unstructured":"Ignatiev, A., Narodytska, N., Asher, N.: On relating \u201cwhy?\u201d and \u201cwhy not?\u201d explanations (2020). [csLG] arXiv:2012.11067 [cs.LG]"},{"key":"656_CR27","unstructured":"Junker, U.: Preferred explanations and relaxations for over-constrained problems. AAAI-2004 (2004)"},{"key":"656_CR28","unstructured":"Klabnik, S., Nichols, C.: The rust programming language (2025) . https:\/\/doc.rust-lang.org\/book\/ch06-01-defining-an-enum.html. Accessed 19 Feb 2024"},{"key":"656_CR29","doi-asserted-by":"publisher","unstructured":"Kleinschmager, S., Hanenberg, S., Robbes, R., et\u00a0al.: Do static type systems improve the maintainability of software systems? an empirical study. In: 2012 20th IEEE International Conference on Program Comprehension (ICPC), pp 153\u2013162 (2012). IEEE. https:\/\/doi.org\/10.1109\/icpc.2012.6240483","DOI":"10.1109\/icpc.2012.6240483"},{"key":"656_CR30","doi-asserted-by":"publisher","unstructured":"Lee, O., Yi, K.: Proofs about a folklore let-polymorphic type inference algorithm. ACM Trans. Program. Lang. Syst. 20(4), 707\u2013723 (1998). https:\/\/doi.org\/10.1145\/291891.291892","DOI":"10.1145\/291891.291892"},{"issue":"6","key":"656_CR31","doi-asserted-by":"publisher","first-page":"425","DOI":"10.1145\/1273442.1250783","volume":"42","author":"BS Lerner","year":"2007","unstructured":"Lerner, B.S., Flower, M., Grossman, D., et al.: Searching for type-error messages. SIGPLAN Not 42(6), 425\u2013434 (2007). https:\/\/doi.org\/10.1145\/1273442.1250783","journal-title":"SIGPLAN Not"},{"issue":"1","key":"656_CR32","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/s10817-007-9084-z","volume":"40","author":"MH Liffiton","year":"2008","unstructured":"Liffiton, M.H., Sakallah, K.A.: Algorithms for computing minimal unsatisfiable subsets of constraints. J. Automat. Reason. 40(1), 1\u201333 (2008). https:\/\/doi.org\/10.1007\/s10817-007-9084-z","journal-title":"J. Automat. Reason."},{"key":"656_CR33","doi-asserted-by":"publisher","unstructured":"Liffiton, M.H., Previti, A., Malik, A., et al.: Fast, flexible MUS enumeration. Constraints 21(2), 223\u2013250 (2016). https:\/\/doi.org\/10.1007\/s10601-015-9183-0","DOI":"10.1007\/s10601-015-9183-0"},{"key":"656_CR34","unstructured":"Mayer, C., Hanenberg, S., Robbes, R.: Static type systems (sometimes) have a positive impact on the usability of undocumented software: An empirical evaluation. Tech. rep (2012)"},{"key":"656_CR35","unstructured":"McAdam, B.: Repairing type errors in functional programs. PhD thesis, University of Edinburgh (2002)"},{"key":"656_CR36","unstructured":"Microsoft: Type inference (2025). https:\/\/www.typescriptlang.org\/docs\/handbook\/type-inference.html. Accessed 19 Feb 2024"},{"key":"656_CR37","doi-asserted-by":"publisher","unstructured":"Nelson, T., Danas, N., Dougherty, D.J., et\u00a0al.: The power of \u201cwhy\u201d and \u201cwhy not\u201d: enriching scenario exploration with provenance. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering. ACM (2017). https:\/\/doi.org\/10.1145\/3106237.3106272","DOI":"10.1145\/3106237.3106272"},{"key":"656_CR38","unstructured":"Pottier, F., R\u00e9my, D.: 10 the essence of ML type inference. cambiuminriafr (2004)"},{"key":"656_CR39","doi-asserted-by":"publisher","unstructured":"Previti, A., Marques-Silva, J.: Partial MUS enumeration. Proc Conf AAAI Artif Intell 27(1), 818\u2013825 (2013). https:\/\/doi.org\/10.1609\/aaai.v27i1.8657","DOI":"10.1609\/aaai.v27i1.8657"},{"key":"656_CR40","doi-asserted-by":"publisher","unstructured":"Ram\u00edrez, L.C., Lim\u00f3n, X., S\u00e1nchez-Garc\u00eda, A.J., et\u00a0al.: State of the art of the security of code generated by LLMs: A systematic literature review. In: 2024 12th International Conference in Software Engineering Research and Innovation (CONISOFT). IEEE, pp 331\u2013339 (2024). https:\/\/doi.org\/10.1109\/conisoft63288.2024.00050","DOI":"10.1109\/conisoft63288.2024.00050"},{"issue":"10","key":"656_CR41","doi-asserted-by":"publisher","first-page":"91","DOI":"10.1145\/3126905","volume":"60","author":"B Ray","year":"2017","unstructured":"Ray, B., Posnett, D., Devanbu, P., et al.: A large-scale study of programming languages and code quality in GitHub. Commun. ACM 60(10), 91\u2013100 (2017). https:\/\/doi.org\/10.1145\/3126905","journal-title":"Commun. ACM"},{"key":"656_CR42","doi-asserted-by":"publisher","unstructured":"Robinson, J.A.: A machine-oriented logic based on the resolution principle. J. ACM 12(1), 23\u201341 (1965). https:\/\/doi.org\/10.1145\/321250.321253","DOI":"10.1145\/321250.321253"},{"key":"656_CR43","doi-asserted-by":"publisher","unstructured":"Seidel, E.L., Sibghat, H., Chaudhuri, K., et al.: Learning to blame: localizing novice type errors with data-driven diagnosis. Proceedings of the ACM on Programming Languages 1, 1\u201327 (2017). https:\/\/doi.org\/10.1145\/3138818","DOI":"10.1145\/3138818"},{"key":"656_CR44","unstructured":"Marlow, S.: Haskell 2010 language report. Tech. rep (2010)"},{"key":"656_CR45","doi-asserted-by":"publisher","unstructured":"Stuckey, P.J., Sulzmann, M., Wazny, J.: Interactive type debugging in haskell. In: Proceedings of the 2003 ACM SIGPLAN workshop on Haskell. ACM, New York, NY, USA, pp. 72\u201383 (2003). https:\/\/doi.org\/10.1145\/871895.871903","DOI":"10.1145\/871895.871903"},{"key":"656_CR46","doi-asserted-by":"crossref","unstructured":"Tambon, F., Dakhel, A.M., Nikanjam, A., et\u00a0al.: Bugs in large language models generated code (2024). [csSE] arXiv:2403.08937 [cs.SE]","DOI":"10.1007\/s10664-025-10614-4"},{"key":"656_CR47","doi-asserted-by":"publisher","unstructured":"Tirronen, V., Uusi-M\u00e4kel\u00e4, S., Isom\u00f6tt\u00f6nen, V.: Understanding beginners\u2019 mistakes with haskell. J Funct Programming 25, e11 (2015). https:\/\/doi.org\/10.1017\/S0956796815000179","DOI":"10.1017\/S0956796815000179"},{"key":"656_CR48","doi-asserted-by":"publisher","unstructured":"Wadler, P.: Propositions as types. Commun. ACM 58(12), 75\u201384 (2015). https:\/\/doi.org\/10.1145\/2699407","DOI":"10.1145\/2699407"},{"key":"656_CR49","doi-asserted-by":"publisher","unstructured":"Wielemaker, J., Costa, V.S.: On the portability of prolog applications. In: Practical Aspects of Declarative Languages. Lecture notes in computer science, Springer Berlin Heidelberg, Berlin, Heidelberg, pp. 69\u201383 (2011). https:\/\/doi.org\/10.1007\/978-3-642-18378-2_8","DOI":"10.1007\/978-3-642-18378-2_8"},{"key":"656_CR50","doi-asserted-by":"publisher","unstructured":"Zhang, D., Myers, A.C., Vytiniotis, D., et al.: Diagnosing type errors with class. SIGPLAN Not 50(6), 12\u201321 (2015). https:\/\/doi.org\/10.1145\/2813885.2738009","DOI":"10.1145\/2813885.2738009"},{"key":"656_CR51","doi-asserted-by":"publisher","unstructured":"Zhang, D., Myers, A.C., Vytiniotis, D., et al.: SHErrLoc: A static holistic error locator. ACM Trans. Program. Lang. Syst. 39(4), 1\u201347 (2017). https:\/\/doi.org\/10.1145\/3121137","DOI":"10.1145\/3121137"},{"key":"656_CR52","doi-asserted-by":"publisher","unstructured":"Zhao, W., Liffiton, M.H.: Parallelizing partial MUS enumeration. In: 2016 IEEE 28th International Conference on Tools with Artificial Intelligence (ICTAI). IEEE, San Jose, CA, USA, pp. 464\u2013471 (2016).https:\/\/doi.org\/10.1109\/ictai.2016.0077","DOI":"10.1109\/ictai.2016.0077"},{"key":"656_CR53","unstructured":"Zhong, L., Wang, Z.: Can ChatGPT replace StackOverflow? a study on robustness and reliability of large language model code generation (2023). [csCL] arXiv:2308.10335 [cs.CL]"}],"container-title":["Automated Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-026-00656-3.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-026-00656-3","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-026-00656-3.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T02:45:27Z","timestamp":1794537927000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-026-00656-3"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,11]]},"references-count":53,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2026,12]]}},"alternative-id":["656"],"URL":"https:\/\/doi.org\/10.1007\/s10515-026-00656-3","relation":{},"ISSN":["0928-8910","1573-7535"],"issn-type":[{"value":"0928-8910","type":"print"},{"value":"1573-7535","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,11]]},"assertion":[{"value":"9 May 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"30 July 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"11 September 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}}],"article-number":"130"}}