You're exporting a function that uses unexported types. Also should have docs.