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

Fail to compile examples #49

Open
ghost opened this issue Jul 30, 2014 · 0 comments
Open

Fail to compile examples #49

ghost opened this issue Jul 30, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2014

Hi there.
I run ghc 7.6.3 and cv-0.3.7.
Some of the examples fail to compile, e.g. channels.hs, Chessboard.hs, Histograms.hs, Hough.hs, surf.hs. Probably some more, i haven't tested them all.
Some compile successful (filters.hs, colorUtils.hs).

Example:

[1 of 1] Compiling Main             ( Hough.hs, Hough.o )

Hough.hs:17:119:
    Couldn't match expected type `Matrix (a0, a0)'
                with actual type `[(Foreign.C.Types.CFloat,
                                    Foreign.C.Types.CFloat)]'
    In the first argument of `toList', namely `hough'
    In the expression: toList hough
    In a stmt of a list comprehension: (y, k) <- toList hough

Hough.hs:18:73:
    Couldn't match expected type `Matrix (Int, Int, Int, Int)'
                with actual type `[(Foreign.C.Types.CInt,
                                    Foreign.C.Types.CInt,
                                    Foreign.C.Types.CInt,
                                    Foreign.C.Types.CInt)]'
    In the first argument of `toList', namely `hough2'
    In the expression: toList hough2
    In a stmt of a list comprehension: (x, y, u, v) <- toList hough2

Hough.hs:19:120:
    Couldn't match expected type `Matrix (a0, a0)'
                with actual type `[(Foreign.C.Types.CFloat,
                                    Foreign.C.Types.CFloat)]'
    In the first argument of `toList', namely `hough3'
    In the expression: toList hough3
    In a stmt of a list comprehension: (y, k) <- toList hough3

The number of not compiling files keeps me wondering if i'm doing something wrong, or are some Examples out of date?

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

0 participants