git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix README
commitd3fb24205ece1720dbdd32f5b7c95adad322ecb9 authorPhil Freeman <paf31@cantab.net> dateThu 7 Nov 2013, 09:05 (13 years ago) parentd49abd2
1 file changed+2−2
README.md+2−2
README.md+2−2
@@ -598,9 +598,9 @@ foreign import console :: {
598598}
599599```
600600
601−To alias a name of a field defined on a Javascript type to a PureScript function, use `foreign import member`. For example, to define a function `length` which accesses the ``length` member of an array:
601+To alias a name of a field defined on a Javascript type to a PureScript function, use `foreign import member`. For example, to define a function `length` which accesses the `length` member of an array:
602602
603−```
603+```haskell
604604foreign import member "length" length :: forall a. [a] -> Number
605605```
606606