Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A possible bug (Nothing Nothing) #17

Closed
Janiczek opened this issue Nov 27, 2019 · 1 comment · Fixed by #18
Closed

A possible bug (Nothing Nothing) #17

Janiczek opened this issue Nov 27, 2019 · 1 comment · Fixed by #18
Assignees

Comments

@Janiczek
Copy link

Janiczek commented Nov 27, 2019

bug

Seems like the parser thinks there is Nothing constructor with argument Nothing, while in reality these are two separate single-level Nothings.

The original type is

type CacheKey
    = CacheKey DatapointCode (Maybe AudienceId) (Maybe SegmentId)

The debug message before parsing:

cache before merging: AnyDict { dict = Dict.fromList [(("q999_99",(0,""),(0,"")),(CacheKey (Id "q999_99") Nothing Nothing,Success { audiencePercentage = 100, datapointPercentage = 100, index = 100, responsesCount = 30622, weightedUniverse = 205787975 })),(("q999_99",(1,"7134"),(0,"")),(CacheKey (Id "q999_99") (Just (Id "7134")) Nothing,Failure (CustomError "96bdfc0b319eed1f7a379ba4b26486c7" (InvalidProjectsCombination (QueryId "86550699-1a81-41fe-9a34-a2e88895df24") ("gwi-hispanic",["core"])))))], toKey = <function> }

(see the CacheKey (Id "q999_99") Nothing Nothing part)

@kraklin
Copy link
Owner

kraklin commented Jan 30, 2020

It should be fixed now - it was a little bit harder than I thought it would be but I uncover another bug that have been sitting there. Thank you @Janiczek

@kraklin kraklin self-assigned this Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants