Storage utility functions for Haskell