aboutsummaryrefslogtreecommitdiff
path: root/src/components/HomepageFeatures/coming-soon-features.tsx
blob: 7be8399ed4a5307b46917dbb443083b4607e86ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import React from "react";
import { FeatureItem } from "./feature-item";

export const ComingSoonFeatures: FeatureItem[] = [
  {
    title: "A beautiful standard library",
    description: (
      <>
        NeoHaskell offers a clean and intuitive language design, complemented by
        a core library that provides all the tools you need to start creating
        amazing software right away.
      </>
    ),
    buttonText: "Start Coding",
    showcase: {
      language: "haskell",
      code: `"NeoHaskell is cool"
  |> Text.toWordList
  |> List.map Text.length
  |> List.map (\\x -> x * x)
  |> List.takeIf Int.isEven`,
    },
  },
  {
    title: "An integrated build system",
    description: (
      <>
        NeoHaskell's CLI tool installs all required utilities and makes
        multi-platform support a breeze. Whether you're compiling to native
        code, installing dependencies, or packaging your application for
        deployment, you'll enjoy a seamless experience.
      </>
    ),
    buttonText: "Enjoy the Ride",
    showcase: {
      language: "bash",
      code: `$ neo setup
Setting up NeoHaskell...
Downloading the latest version of the compiler...
Installing build process plugins...
Done!

$ neo build
Building...

$ neo add scotty
Adding 'scotty' to your project...
Installing dependencies...
Done!
    `,
    },
  },
  {
    title: "Mobile development",
    description: (
      <>
        Build mobile applications with NeoHaskell. The CLI tool lets you
        generate a client package with auto-update support, and the generation
        of UIs is a breeze with the included UI library.
      </>
    ),
    buttonText: "Conquer Mobile apps",
    showcase: {
      language: "haskell",
      code: `screen = do
  body [] do
    image [source "/img.png"]
    text [] "Hello World!"`,
    },
  },
  {
    title: "Pre-thought architecture",
    description: (
      <>
        Whether you're building a command-line script, a backend, or a UI
        application, NeoHaskell has the architecture pre-thought, for you. Just
        generate your project from one of our templates, or just follow the
        guides in the documentation to setup your project for success!
      </>
    ),
    buttonText: "Don't reinvent the wheel",
    showcase: {
      language: "haskell",
      code: `main = eventSourcing
  { entities = myEntities
  , events = myEvents
  , reducer = myReducer
  , ...
  } |> runApp`,
    },
  },
  {
    title: "Python interop",
    description: (
      <>
        <p>
          With the rise of the AI era, it is now more important than ever to be
          able to leverage the power of Python's AI ecosystem. NeoHaskell, with
          its Python interoperability, lets you do just that.
        </p>
        <br />
        <p>
          Use LangChain, Stable Diffusion, PyTorch, and other Python libraries
          right from your NeoHaskell code.
        </p>
      </>
    ),
    buttonText: "Engage Galaxy Brain",
    showcase: {
      language: "python",
      code: `answer question = [python|
  from langchain.llms import OpenAI
  llm = OpenAI()
  return llm.predict("hi!")
  |]`,
    },
  },
];