PostgreSQL-ORM is an Object Relational Mapper (ORM) that complements Simple. It knows how to map high-level operations to PostgreSQL flavored SQL for Haskell types that are instances of the Model type-class, as well as perform join operations on associations between Model instances. Declaration Creating a Model in Haskell is easy. We simply declare a datatype using record syntax, include a field of type DBKey to hold the primary key and let Haskell Generics do the rest:…
"PostgreSQL ORM"Author: Aly Chiman
This getting started tutorial will get you up and running with a basic web application. At the end you will know how install Simple how to create a Simple application from scratch the structure of a Simple application how to add persistence with PostgreSQL. Guide Assumptions This guide assumes you have a working version of the GHC Haskell compiler, the cabal package manager and an up-to-date version of the PostgreSQL database. The best way to…
"Getting Started Tutorial: Simple Basic Web Application"Simple comes with support for the embedded templating language defined in the package simple-templates. Templates let you embed dynamic content in HTML, JSON or any other text format you return in your responses. Using with a Simple app Adding template support in your app is as easy as declaring an instance ofHasTemplates for your app settings: import Web.Simple.Templates data MyAppSettings = … instance HasTemplates MyAppSettings HasTemplates has default definitions for all of its methods. However,…
"Simple Templates"Simple ships with a command-line utility, smpl, that helps bootstrap applications as well as run then in development mode. Synopsis smpl [server] [OPTIONS] smpl create [OPTIONS] <app_name> Global Options -? –help Display help message -V –version Print version information Creating an application smpl create [OPTIONS] <app_name> Creates a new Simple application in the directory app_name. The Haskell module for the new application is the CamelCase derivation of app_name. For example, an app with the name…
"The smpl Command-line Utility"Medical sterilization pouches(hereinafter referred to as sterilizer bags) is a new more effective and safe sterilization packaging product widely used in hospital supply room, operating room, dental department for sterilization and storage of medical packaging. First, the structure principle: The sterilization pouches is composed of a layer of medical dialysis paper resistant to high temperature and high pressure steam and a layer of high temperature resistant transparent composite film. The transparent film layer…
"The introduction of sterilization pouches"
