Skip to content

vector-space-0.8.5 breaks compilation #27

@peti

Description

@peti

After updating to the latest version of vector-space, I get the following build error:

Building diagrams-cairo-0.5.0.2...
Preprocessing library diagrams-cairo-0.5.0.2...
[1 of 5] Compiling Diagrams.Backend.Cairo.Internal ( src/Diagrams/Backend/Cairo/Internal.hs, dist/build/Diagrams/Backend/Cairo/Internal.o )
[2 of 5] Compiling Diagrams.Backend.Cairo.Text ( src/Diagrams/Backend/Cairo/Text.hs, dist/build/Diagrams/Backend/Cairo/Text.o )

src/Diagrams/Backend/Cairo/Text.hs:145:53:
    Couldn't match expected type `Point v0' with actual type `R2'
    In the return type of a call of `textSize'
    In the second argument of `(^+^)', namely `(textSize te)'
    In the second argument of `fromCorners', namely
      `(origin .+^ bearing te ^+^ (textSize te))'

src/Diagrams/Backend/Cairo/Text.hs:146:25:
    Couldn't match type `V b0' with `R2'
    Expected type: Envelope R2
      Actual type: Envelope (V b0)
    In the return type of a call of `getEnvelope'
    In the first argument of `setEnvelope', namely `(getEnvelope box)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions