acowley/Frames

How to install Frames?

Magalame opened this issue · 7 comments

Hi,
I searched through the documentation, I don't think I saw any specification concerning how to install Frames.

Thanks

It is a regular Haskell library, so you can use whichever mechanism you are most comfortable with. Common choices would be to use cabal-install (here is a relatively recent tutorial), stack(which has a nice official tutorial, or nix.

Should I down the source and then stack installor go straight for stack install Frames? Sorry for asking about details I'm a bit new.

If you prepare a stack-based package for yourself following the tutorial, this step in that tutorial shows how to add a dependency on a package not in a stackage package set. Frames is not currently a part of a stackage package set due to issues with dependencies, but adding it to an extra-deps section of your package's stack.yaml as shown at that link should work.

You can also take a look at this demo stack package a user put together that shows off a self-contained package using Frames. You can get it by cloning the Frames repo. If you copy the framestack directory into your own work directory, note that paths to data files will need updating to reflect that movement.

Thanks a lot for the help!

I have another question actually:
I'm going through the tutorial, and I'm having trouble understanding how to extract an element from a single User row.

For example if I have user1 = head (F.toList ms), how can I get the age of that user?

Thanks!

There are probably too many ways to do this, which makes it accidentally hard to get started with. In the tutorial, this is done with view age, so you would write view age user1.

Thanks!