ghcjs / ghcjs-base

base library for GHCJS for JavaScript interaction and marshalling, used by higher level libraries like JSC
MIT License
45 stars 67 forks source link

Defined functions to cascade read nested object properties #13

Closed geraldus closed 8 years ago

geraldus commented 9 years ago

example: to read window.location.href having window as win :: JSRef a

getPropCascade ["location","href"] win

Need review. Maybe better naming, commentary, description, implementation, etc.

geraldus commented 9 years ago

I also want this functionally merged into new-marshal branch.