agentm / project-m36

Project: M36 Relational Algebra Engine
The Unlicense
876 stars 47 forks source link

Added `getAtomType` #330

Closed farzadbekran closed 2 years ago

farzadbekran commented 2 years ago

Utility function to extract the AtomType from an Atom

agentm commented 2 years ago

I think there is an exact duplicate of this function with atomTypeForAtom. Is there a place where we should export this function or some way to make it more prominent?

farzadbekran commented 2 years ago

Hmm... I did a hoogle for Atom -> AtomType and came up empty, and checked the Atomable class for something similar. I also looked into the AtomType.hs file and didn't find anything similar and assumed it's missing. Maybe if we export it in Client.hs it will be easier to find since that module is the one stop import for most users.

agentm commented 2 years ago

Ah, it's because I moved the function and didn't upload the latest documentation :/