Add Yesod detection and route analysis for Haskell projects#1343
Merged
Add Yesod detection and route analysis for Haskell projects#1343
Conversation
Copilot
AI
changed the title
[WIP] Add Yesod detector and analyzer for Haskell framework
Add Yesod detection and route analysis for Haskell projects
May 6, 2026
Agent-Logs-Url: https://github.com/owasp-noir/noir/sessions/9fd8b4a3-f603-444b-bed9-1cd440060a77 Co-authored-by: hahwul <13212227+hahwul@users.noreply.github.com>
Agent-Logs-Url: https://github.com/owasp-noir/noir/sessions/9fd8b4a3-f603-444b-bed9-1cd440060a77 Co-authored-by: hahwul <13212227+hahwul@users.noreply.github.com>
Agent-Logs-Url: https://github.com/owasp-noir/noir/sessions/9fd8b4a3-f603-444b-bed9-1cd440060a77 Co-authored-by: hahwul <13212227+hahwul@users.noreply.github.com>
Agent-Logs-Url: https://github.com/owasp-noir/noir/sessions/9fd8b4a3-f603-444b-bed9-1cd440060a77 Co-authored-by: hahwul <13212227+hahwul@users.noreply.github.com>
c046f5d to
24d48f3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Yesod projects were not recognized or analyzed, so Noir missed endpoints declared through Yesod’s routing DSL. This adds first-class support for detecting Yesod apps and extracting routes from both inline and file-based route definitions.
Framework support
haskell_yesodtech metadata and wires Yesod into detector/analyzer registrationmkYesod,parseRoutes,parseRoutesFile,import Yesod) and package metadata (package.yaml,.cabal)Route extraction
mkYesod ... [parseRoutes| ... |]mkYesodData ... [parseRoutes| ... |]parseRoutesFilePath parameter handling
#Type→:type*Type/+Type→ wildcard path paramsCoverage
.yesodroutesfilesExample of routes now recognized:
This produces endpoints such as:
GET /GET /blog/:textPOST /blog/:textGET /api/healthPUT /api/users/:user_idDELETE /api/users/:user_idWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.yesodweb.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: