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

MayBoxVec type annotation problem #102

Open
cscherrer opened this issue Jul 10, 2017 · 2 comments
Open

MayBoxVec type annotation problem #102

cscherrer opened this issue Jul 10, 2017 · 2 comments

Comments

@cscherrer
Copy link
Contributor

summary adds a type annotation to prog, which involves MayBoxVec Prob Prob. Compiling with GHC results in the error
Not in scope: type constructor or class ‘Prob’

Removing the type annotation makes it compile again.

It looks like Prob was being interpreted as a constructor or class, rather than as a type. So I guess maybe the problem has to do with MayBoxVec.

@ccshan
Copy link
Member

ccshan commented Jul 10, 2017

The Prob type synonym was added to Language.Hakaru.Runtime.LogFloatPrelude and Language.Hakaru.Runtime.Prelude in 772a986, then used in 1509e85. Neither of these commits is in v0.4. Would you please clarify which version you're using, and try reinstalling Language.Hakaru.Runtime.LogFloatPrelude if you're using the latest master rather than v0.4?

@cscherrer
Copy link
Contributor Author

I'm using v0.4. Strange, we had been talking for a long time in terms of Prob values. I think I'm confusing them with prob values in Hakaru.

When I switched to the master branch I started getting a similar error message about Measure.

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

No branches or pull requests

2 participants