polar-engine / hs-polar

Polar Game Engine is a modern, safe game engine written in Haskell.
http://polarengine.org
Apache License 2.0
6 stars 1 forks source link

Make InnerStorage its own data structure #10

Closed ori-sky closed 8 years ago

ori-sky commented 8 years ago

Previously InnerStorage was a type alias to a tuple as tuples of size 2 already have an instance of AsEmpty. This patch implements an instance for the new InnerStorage type through the nearly function, using defaultInnerStorage as the empty value and innerStorageNull as the null condition.