← every case · 4000 · a quote that opens nothing

4060-primed_identifier_haskell

Haskell lets a name end in an apostrophe, so x' is one name and the apostrophe opens nothing. The line under it holds a real character literal, where a pair of apostrophes does mean what it looks like

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.hs
1codex' = "don't"
2codey' = 'a'
3comments-- a real comment

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

cloc --json cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

mezura cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

scc --format json cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

tokei --output json cases/4000-a_quote_that_opens_nothing/4060-primed_identifier_haskell/input.hs