argh, unrelated breaking change, and bad names
This commit is contained in:
parent
aaaf02b783
commit
82c9262e91
@ -42,7 +42,7 @@ do
|
|||||||
withHsBindgen
|
withHsBindgen
|
||||||
def
|
def
|
||||||
{ clang = def{extraIncludeDirs = Pkg "rust/target/debug" : systemDirs}
|
{ clang = def{extraIncludeDirs = Pkg "rust/target/debug" : systemDirs}
|
||||||
, fieldNamingStrategy = EnableRecordDot
|
, fieldNamingStrategy = OmitFieldPrefixes
|
||||||
}
|
}
|
||||||
def
|
def
|
||||||
$ hashInclude "garnet_rs.h"
|
$ hashInclude "garnet_rs.h"
|
||||||
|
|||||||
@ -35,6 +35,7 @@ data Shape
|
|||||||
convertShape :: Shape -> Raw.Shape
|
convertShape :: Shape -> Raw.Shape
|
||||||
convertShape = \case
|
convertShape = \case
|
||||||
Circle r -> Raw.Shape Raw.Circle $ Raw.set_shape_circle_circle $ Raw.Circle_Body r
|
Circle r -> Raw.Shape Raw.Circle $ Raw.set_shape_circle_circle $ Raw.Circle_Body r
|
||||||
|
-- hmm, unintuitive name
|
||||||
Rectangle w h -> Raw.Shape Raw.Rectangle $ Raw.set_shape_circle_rectangle $ Raw.Rectangle_Body w h
|
Rectangle w h -> Raw.Shape Raw.Rectangle $ Raw.set_shape_circle_rectangle $ Raw.Rectangle_Body w h
|
||||||
|
|
||||||
data BTree a
|
data BTree a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user