GithubHelp home page GithubHelp logo

idris-mongo's Introduction

If mongo drivers are not installed:

brew update curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.12.0/mongo-c-driver-1.12.0.tar.gz tar xzf mongo-c-driver-1.12.0.tar.gz cd mongo-c-driver-1.12.0 brew install cmake mkdir cmake-build cd cmake-build cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .. make sudo make install

export paths

export CPATH=/usr/local/include/libmongoc-1.0:/usr/local/include/libbson-1.0:/usr/local/lib/ export LD_LIBRARY_PATH=/usr/local/lib/

#build idris --build mongolib.ipkg

start mongodb

mongod -vvvvv --config /usr/local/etc/mongod.conf

Reminder

  • Typechecking (ctrl-alt-r)
    • compiles the file and reports errors
  • Case-splitting (ctrl-alt-c)
    • split a variable which can be pattern matched
  • Clause-adding (ctrl-alt-a)
    • add a clause to a function
  • Proof-search (ctrl-alt-s)
    • search for a proof of a hole
  • Showing the types of a variable (ctrl-alt-t)
    • show the type of a hole
  • Show the doc for a function (ctrl-alt-d)
  • make-with (ctrl-alt-w)
    • add further variables on the left hand side of a function
  • make-case (ctrl-alt-m)
  • make-lemma (ctrl-alt-l)
    • lift a hole into a function context
  • Add proof case (ctrl-alt-p)
  • Browse namespace (ctrl-alt-b)
    • select the name of a namespace beforehand
  • Showing holes
  • ipkg highlighting
  • REPL (ctrl-alt-enter)
  • Apropos view

idris-mongo's People

Contributors

machunter avatar

Watchers

 avatar  avatar

idris-mongo's Issues

Memory leak in bson_as_json

The bson_as_json C stub returns a char *. The documentation of BSon states that such strings/pointers must be deallocated with free(). However the pointer becomes owned by Idris when returning from the call to the C stub. As far as I see it, Idris doesn't free() the pointer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.