Error in data binding group / worked in pre 0.7

30 views
Skip to first unread message

Robert Kuzelj

unread,
Jul 13, 2015, 5:56:12 AM7/13/15
to pures...@googlegroups.com
Hi,

given the following code

--Extern.purs
module Gonzales.Extern where 

import Prelude
import Data.Function 

type ParseConfig = { syntax :: String } 

data Content = SContent String | AContent Array NativeTree
data Position = Position Number Number 

newtype NativePosition = NativePosition { line :: Number, column :: Number } 
newtype NativeTree = NativeTree { type :: String, content :: Content, start :: NativePosition } 

when compiling I get this error

psc 'src/**/*.purs' 'bower_components/*/src/**/*.purs' --ffi 'src/**/*.js' --ffi 'bower_components/*/src/**/*.js'
Compiling Gonzales.Extern
Error:
Error in module Gonzales.Extern:
Error in data binding group:
Error at ./test01/src/Gonzales/Extern.purs line 3, column 1 - line 4, column 1:
  Cannot unify kind
    * -> *
  with kind
    *

This worked without any problem in 0.6.9.5.
What is the compiler trying to tell me.

Best regards

Robert

Phil Freeman

unread,
Jul 13, 2015, 11:09:36 AM7/13/15
to pures...@googlegroups.com
I think you need to parenthesize:

data Content = SContent String | AContent (Array NativeTree)

-Phil.

--
You received this message because you are subscribed to the Google Groups "purescript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to purescript+...@googlegroups.com.
Visit this group at http://groups.google.com/group/purescript.
For more options, visit https://groups.google.com/d/optout.

Robert Kuzelj

unread,
Jul 13, 2015, 11:18:35 AM7/13/15
to pures...@googlegroups.com, freema...@gmail.com
Thanks. that makes sense.

ijazz jazz

unread,
Apr 17, 2018, 6:14:00 AM4/17/18
to purescript
 Android has now released a stable data-binding library which allows you to connect views with data in a much more powerful way than was possible ... To enable this to work for a layout file, first we need to change the layout file by making the outer tag <layout> instead of whatever ViewGroup you use.


Reply all
Reply to author
Forward
0 new messages