Skip to content
A library for using the Frege programming language in Android development.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/META-INF Added new bindings. Dec 31, 2016
src
.gitignore
README.md
compile Add gitignore file. Apr 27, 2018
compile.ps1
froid.gradle Update froid.gradle Apr 25, 2018
froid.png
package froid version 0.0.2 Apr 25, 2017
package.bat

README.md

froid

A library for using the Frege programming language in Android development.

Usage and examples

To get/setup froid read the instructions on the froid Wiki. To write a simple application from scratch follow this step-by-step tutorial.

Simple Activity

module io.github.mchav.fregeandroid.FregeActivity where

import froid.app.Activity
import froid.content.Context
import froid.os.Bundle
import froid.widget.TextView

native module type Activity where {}

onCreate :: Activity -> Maybe Bundle -> IO ()
onCreate this bundle = do
	tv <- TextView.new this
	tv.setText "Hello, Android - Love, Frege"
	this.setContentView tv

Example

You can find a more involved example here. More will be available soon.

Building froid

Run compile and then package.

Contributing

A lot of what there is to do is create the bindings for the other types in android. For classes such as adapters/fragments read this to learn about the design philosophy for subclassing. Any PRs of this nature are welcome.

You can’t perform that action at this time.